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.




This question was asked on Jan 21, 2013.

Recently Asked Questions

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 and customizable flashcards—available anywhere, anytime.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access or to earn money with our Marketplace.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
  • -

    Flashcards

    Browse existing sets or create your own using our digital flashcard system. A simple yet effective studying tool to help you earn the grade that you want!

    Browse Flashcards