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 statement essential to call compute interest method

Write statement essential to call the calculate interest method with an account balance of $2300.00 and an interest rate of 5%. What rule must be adhered to when calling a method with multiple parameters?

  Write program to calculate how much person earns

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day.

  Applications in involve computing various powers of e

The transcendental number, e. Many applications in mathematics involve computing various powers of e. It can be proven that ex = 1 + x/1 + x2/2! + x3/3! + ... for all values of x. Of course, this is an infinite sum.

  Formula translation

Write a c code that will evaluate the roots of a quadratic equation

  Does loop have dependences two-dimensional arrays

Consider the following code with two-dimensional arrays. Does this loop have dependences? Can these loops be written so they are parallel?

  Draw flowchart or write psuedocode to represent logic

Draw a flowchart or write psuedocode to represent the logic of a program that alllows the user to enter three values . The values rpesent hourly pay rate.

  Implicit unsafe type conversions-statements and expressions

Write a report using APA format for references that researches the definition of the language with respect to implicit unsafe type conversions in both assignment statements and expressions.

  Program for class quiz to implement measurable interface

State a class Quiz to implement Measurable interface. A quiz has a score and a letter grade (such as B+).

  General layout for a web-based source document

Suggest the general layout for web-based source document that prospective sellers could use to explain their antiques. Information must include the user ID, password, item, dimensions, origin, condition, and asking price.

  Identify entities of web site used for ordering a product

Identify a web site used for ordering a product or service and then identify the various entities. As an example when you go to Amazon.com and review products.

  Write unix shell script to check file in current directory

Write Unix shell script (one program) called Project1_lastname (your lastname). This script will do the following tasks: Using "if" statement checks for a file called "student.txt" in current directory.

  Design program that determines males live in zip code area

Design a program that determines how many males and females live in each of the Zip Code areas in the Student Enrollment Records Set.

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