Question: Introduction The program performs calculations and displays back information. C++ 3. Sales Tax Write a program that computes the total sales tax on a $95
Introduction
The program performs calculations and displays back information. C++
| 3. Sales Tax Write a program that computes the total sales tax on a $95 purchase. Assume the state sales tax is 6.5 percent and the county sales tax is 2 percent. Display the purchase price, state tax, county tax, and total tax amounts on the screen. |
Maintain variables for:
purchase amount. Initialize this variable to 95.
state sales tax amount (Not the sales tax percent)
county sales tax amount
total tax amount
Print out the variables. Do not worry about formatting variables.
Refer to the Programming Standards document and follow the rules stated there in order to complete the program.
Sample Output
Output from my version of the program is as follows.
Purchase Price : 95
State Sales Tax : 6.175
County Sales Tax : 1.9
Total Tax (State Sales Tax + County Sales Tax) : 8.075
Final Price : 103.075
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
