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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started