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

Compare and contrast these network servers

Your boss asks you to recommend whether the company should upgrade the network servers to Windows servers, UNIX servers, or Citrix Servers. Compare and contrast these networ

Explaining downtick in project success rates of it projects

What is the likely reason or reasons for the downtick in project success rates of IT projects and what recommendations would you make to improve the success rates? Be spec

Design and implement a name_pairs class

Provide a sort() operation that sorts the name vector in alphabetical order and reorganizes the age vector to match. Implement all "operations" as member functions. Test the

Create an active directory three structure

Create an Active Directory three structure for one of the following environments: A segment of the company at which you are employed  A segment for PBSC (feel free to make ass

How does cpu interface with device to coordinate transfer

Direct memory access is used for high-speed I/O devices to avoid increasing the CPUÂ ´s execution load. How does CPU interface with device to coordinate transfer

Use of type of software

If she replies to John's email, within seconds you will again receive a copy of what she sent to John. Describe two scenarios (other than those described here) for the use o

Write a function called enter new password

In python, the question asks to write a function called enter New Password. The function takes no parameters. it prompts the user to enter a password until the entered passw

Management expects net income to grow

Management expects net income to grow at a rate of 5 percent per year after 2020 and the company's beta is 1.2. Management has set a dividend payout ratio equal to 20% of net

Reviews

Write a Review

 
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