View the step-by-step solution to:

# Exercise 6 pg. 73 Sales Tax Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and...

Exercise 6 pg. 73
Sales Tax
Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales tax is 4% and the county sales tax is 2%. The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax and the total of the of the sale (which is the sum of the amount of the purchase plus the total sales tax.) Hint: Use the value .02 to represent 2% and .04 to represent 4%.

Ex. 2, page 113
Sales Tax Program Refactoring
Programming Exercise 6 in Chapter 2 was the Sales Tax Program. For the exercise you were asked to design a program that calculates and display the county and state sales tax on a purchase. If you have already designed that program, create a modular design for it.

### Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

### -

Educational Resources
• ### -

Study Documents

Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

Browse Documents