Create program-ask user to enter amount of purchase

Assignment Help Programming Languages
Reference no: EM1367266

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4% and the county sales tax is 2%. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax and the total of the of the sale (which is the sum of the amount of the purchase plus the total sales tax.) Hint: Use the value .02 to represent 2% and .04 to represent 4%.

Reference no: EM1367266

Questions Cloud

Which data hazards added to datapath : Which of data hazards can be prevented if forwarding is added to datapath? For each such hazards, list register number and two instructions involved.
What makes a contribution income statement unique : Show what makes a contribution income statement unique and discuss how a contribution income statement could be used to improve planning in a company.
Leaders of a quantum healthcare organization : Describe the main tasks of leaders of a quantum healthcare organization. Describe how you can incorporate these criteria as a nursing leader in an Aids clinic and as a Nurse executive in the future.
Economics-price elasticity of demand : If the price elasticity of demand for gasoline is 0.3, and the current price is $1.20 per gallon, what rise in the price of gasoline (in cents or dollars) will reduce its consumption by 10%? please explain.
Create program-ask user to enter amount of purchase : Create a program which will ask the user to enter the amount of a purchase. The program must then compute the state and county sales tax.
Discharge patients according to protocols and guidelines : Healthcare providers are under pressure to discharge patients according to the protocols and guidelines. What is your obligation as the leader in this condition?
Find the wavelength of the sound : The height of a helicopter above the ground is given by h = 3.20 t3, where h is in meters and t is in seconds. At t = 1.95s, the helicopter releases a small mailbag. How long after its release does mailbag reach the ground.
Explain johnson-johnson-s approach for it infrastructure : Discuss Johnson & Johnson's Approach ro providing an IT infrastructure to support its one-face-to-the-customer strategy?
Elements of power-self image and knowledge : Consider the elements of power, self-image, knowledge, and problem-solving that can serve as impediments.

Reviews

Write a Review

Programming Languages Questions & Answers

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Benefits of programming with objects and classes

How is it different from programming with functions alone? Write down benefits of programming with objects and classes in Web applications?

  Write program to compute student-s quiz average

Write a program that will compute student's quiz average. Program must prompt the user for the number of quizzes and then ask the user for each quiz grade.

  Write program to prints the question

Write a program that prints the question"do you want to continue?" and reads a user input. if the user input is"y", "yes", "ok", "sure", or "why not?".

  Implement class to simulate growth of roach population

Implement a class RoachPopulationthat simulates the growth of a roach population. The constructor takes the size of the initial roach population.

  Program to enter up to 20 integers in the array of long

Write down a program which asks user in order to enter up to 20 integers in the array of longs.The program must utilize the function Find_It() in order to situate the integer within the array.

  Issues into account for collecting user data via forms

In addition to making our forms easy to use we need to consider user privacy and the use of data. What are some of the issues which you believe you require to take into account for collecting user data via forms?

  Create class to include fields for length-width in inches

Create a class name Tape that includes fields for length and width in inches and properties for each field. Also include a ToString () method that returns a string constructed from the return value

  Include hyperlink for confirming order in online ticket

Include a check box for attending the Awards Event. Include a hyperlink for confirming the order. Make the link invisible to begin but display it after the Submit button has been clicked.

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Distinguish class templates and program with heading

Clearly distinguish each class templates and their program with heading. Elaborate each step and give it without errors. Develop classes or class templates for the following.

  Program to compute flow of water flowing through a pipe

Write a program to calculate the volume flow rate in cubic feet per second of water flowing through a pipe of diameter d in inches and a velocity of v feet per second.

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