Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Navigating The Supply Chain Maze A Comprehensive Guide To Optimize Operations And Drive Success

Authors: Michael E Kirshteyn Ph D

1st Edition

B0CPQ2RBYC, 979-8870727585

More Books

Students also viewed these Databases questions

Question

design a simple disciplinary and grievance procedure.

Answered: 1 week ago