Computers and Technology

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 cin your 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 tax 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.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 08:00, razielcornils04
What is the algorithm for building a binary tree program
Answers: 2
image
Computers and Technology, 23.06.2019 16:30, saintsfan2004
How to do this programming flowchart?
Answers: 3
image
Computers and Technology, 23.06.2019 18:00, sophx
Apunishment or the threat of punishment used to enforce conformity. select the best answer from the choices provided t f
Answers: 1
image
Computers and Technology, 23.06.2019 23:30, jamalchris9353
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
Do you know the correct answer?
Write a C++ program that will compute the total sales tax on a $95 purchase. Assume the state sales...

Questions in other subjects:

Konu
English, 25.03.2021 17:30