Write a program that asks for the amount of the bill

Assignment Help Basic Computer Science
Reference no: EM13776131

Submit to your professor a MS Word document with replies to the following questions (keep the question's text before each of your replies).

1. Determine the output displayed in the list box by the lines of code.

Dim tax As Double
tax = 200
tax = 25 + tax
lstOutput.Items.Add(tax)

2. Find the value of the given function where a and b are numeric variables of type Double, a = 5 and b = 3.

Math.Round(a/b)

3. Determine the output displayed in the list box by the lines of code.

Dim m As Integer = 4
Dim n As Integer = 3
Dim s As String = "Microsoft"
Dim t As String = "soft"
lstOutput.Items.Add(s.Length)
lstOutput.Items.Add(s.ToLower)
lstOutput.Items.Add(s.Substring(m, n - 1))
lstOutput.Items.Add(s.IndexOf(t))

4. Identify any errors.

Dim hiyo As String
hiyo = "Silver"
txtBox = "Hi-Yo " & hiYo

5. Determine the output produced by the lines of code.

Const SALES_TAX_RATE As Double = 0.06
Dim price as Double = 100
Dim cost = (1 + SALES_TAX_RATE) * price
txtOutput.Text = FormatCurrency(cost)

6. Identify any errors.

txtOutput.Text = FormatCurrency($1234)

7. Write a program that asks for the amount of the bill and percentage tip and calculates the tip. The program should use variables for each of the quantities and display the outcome in a text box with a label. Test the program on a bill of $20 and a 15% tip.

Reference no: EM13776131

Questions Cloud

What can be shared and what not to share on social media : Address topics such as: refraining from workplace commentary on social media, maintaining a professional image, what can be shared and what not to share on social media, harassment, privacy, and IT security
Analysis of synthesized and integrated the resources : Write an analysis of the challenges you encountered as you synthesized and integrated the resources for your literature review.
How business leaders addressed the human impact of terrorist : Soft Target Case Study Analysis: Research the November 2008 Mumbai attacks, Assess how business leaders addressed the human impact of terrorist events
Rural america and global warming : How does the corporatization of farming affect all Americans, not just those living in rural areas? What can you do about this? What is brain drain and what are its long-reaching effects on rural communities? Be sure to include the terms stayers a..
Write a program that asks for the amount of the bill : Write a program that asks for the amount of the bill and percentage tip and calculates the tip. The program should use variables for each of the quantities and display the outcome in a text box with a label. Test the program on a bill of $20 and a..
Problems based on classical hypothesis testing : What are the critical z-values for a two-tailed hypothesis test if the significant level = 0.01?
What role does the statute of frauds play in this contract : Big Time Toymaker (BTT) develops, manufactures, and distributes board games and other toys to the United States, Mexico, and Canada. What role does the statute of frauds play in this contract
Issues related to your selected public health project : Explain the funding issues related to your selected public health project or service related to your Final Project. Include an explanation of whether these issues are long- or short-term, how urgent, and which stakeholders might be most affected .
Ethical issues that can arise : Describe 2 ethical issues that can arise in your selected industry, and discuss why these are ethical issues and not issues relating to morals or values.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  dEfine and discuss the role of each of the five mips

From Computer Architecture Quantitative Approach 5th edition shortly & efficiently: 11. What is forwarding? What problem does it solve? How is it implemented? 12. Define and discuss the role of each of the five MIPS pipeline stages.

  Grown into a national chain with hundreds of locations

Habibi's has now grown into a national chain with hundreds of locations. Each location has one Windows Server 2008 and many Windows Vista desktop computers.

  Local broadcasts cable-satellite

Personal Video Recorders (PVRs): Personal video recorders (PVRs) are digital video recorders used to record and replay television programs received from cable, satellite, or local broadcasts. However, unlike VCRs, which PVRs replaced, PVRs offer m..

  In the style li b {color: blue}, b is the ____ element.

In the style li b {color: blue}, b is the ____ element.

  Explain what information was accessed

Find a major data breach that has occurred recently. Explain what information was accessed and how this information could be misused, such as identity theft, spear phishing, and so on. Remember to include references to chapter 11 or 12 and an ..

  Define a class called blogentry

Define a class called BlogEntry that could be used to store an entry for a Web log. The class should have instance variables to store the poster's username, text of the entry, and the date of the entry using the Date class.

  Ease of access or speed of processing

Security of your data is of utmost importance to Jamie, even more so than ease of access or speed of processing. Which type of application category would you recommend Jamie use?

  Examples of emerging technologies

Assume you are an Information Systems educator, and you have been asked to make an article about emerging technologies and how important it is to be prepared to adapt to new technologies

  What specific data about the entities will need to be stored

The system will need to record data about what entities? What specific data about the entities will need to be stored?

  Logical data-base structure

A report generator is used to. Which of the following is not a logical data-base structure?

  Define electronic monitoring and employee productivity

Your task is to prepare a concise report that considers the relevant issues in electronic monitoring, employee productivity, and makes a recommendation. Your report should include a discussion of the current trend to use electronic monitoring to m..

  Create a home page with navigation bar

Create a home page with navigation bar

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd