1. Engineering
  2. Computer Science
  3. design and write a python program to meet the requirements...

Question: design and write a python program to meet the requirements...

Question details

Design and write a python program to meet the requirements of programming exercise #6 from chapter 2 in your textbook, pages 104 & 105.

The tax rates must be assigned to program constants.

write program that will ask the user to enter the amount of a purchase. the program should then compute the state and county sale tax. Assume the state sales tax is 5% and the county sales tax is 2.5%. 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 sale (which is the sum of the amount of purchase plus the total sales tax). HINT: use the value 0.025 to represent 2.5%, and 0.05 to represent 5%.

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution