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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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