Question: Write a C++ program that will compute the total sales tax on a $95 purchase. Assume the state sales tax is 6% and the county

Write a C++ program that will compute the total sales tax on a $95 purchase. Assume the state sales tax is 6% and the county sales tax is 2%. You only have to output the total sales tax. You should not output any text nor should to output the $. Make sure you end your output with the endl or "/n" new line character. You must calculate the total taxes in the program, and then output them. Do not calculate them outside of the program.

Your program should assign the value of 95 to a variable, you should not read in the value from cin. If you try to read in the value from cinyour program will not pass the test in Submit mode.

Create variables for the purchase price, state sales tax rate, county sales tax rate, and the total sales that that you will be calculating. Give these variables meaningful names. The following are NOT meaningful variable names - p, st, co, ts. Examples of a meaningful variable names would be purchasePrice.

Finally, do not include a system("pause"); statement in your program.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!