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.
Recently Asked Questions
- In what ways was American slavery an eminently modern system? How is American capitalism a direct descendant American slavery?
- Give an example of an equivalence relation that is defined on a particular set. State what the set is and how the equivalence relation is defined. Show that
- I need help with the question below. It's for a finance course i need help with this question