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

  Explain performance which is boost by new version of chip

Let the following hypothetical news release: "Company will unveil industry's first 5 GHz version of chip, which presents 25% performance boost over company's former speed champ. Explain the definition (or definitions) of performance.

  How many rows will truth table require if there six variable

How many rows will a Truth Table require if there are six variables and three conditions of each variable? Defend your answer.

  An iterative algorithm to traverse an arbitrary number

An iterative algorithm to traverse an arbitrary number of nested subdirectories in a file system.

  Identify organizations that may be susceptible to each type

Identify organizations that may be susceptible to each type of attack and explain what the perpetrators might hope to gain by infiltrating their systems.

  Create a script that presents a movie guessing game

Use a single script file named Week5.php to display and process the form Can this be done with the movies 8 mile and black swan.

  What would say in a job interview

What would say in a job interview if you were asked to comment on the following statement: "A Database Administrator (DBA) should create as many indexes as possible for a table because that will result in the greatest speed for all operations ..

  Find the value of (((a+b+)+c)+d)

find the value of (((a+b+)+c)+d) that would be computed in a floating point number system that has a mantissa approximately equivalent in precisions to 17 decimal digits. a = 99.0, b = 1.0*10^30, c=1.0*10^30, d = -98.0

  Html5 can validate weather an email address true or false

HTML5 can validate weather an email address entered by the user actually exists. True or False

  A virtual boolean method that indicates

Data members should include all those inherited plus any you want to add  Member functions should include any inherited methods, plus at least  A virtual Boolean method that indicates whether the player gets another card  A method that announces that..

  Receiver initiated distributed scheduling algorithms

Receiver initiated distributed scheduling algorithms suppose task pre-emption at the sender site.

  Write a method called getgrade

Write a method called getGrade that accepts an integer representing a student's grade in a course and returns that student's numerical course grade

  What does moody suggest is scarce in the free software world

Economics has been called the study of scarcity. It is only possible to sell what is scarce, because what is not scarce (e.g., abundant) has no monetary value. What does Moody suggest is scarce in the Free Software world

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