Question: 4. Write Python code that will ask the user to enter the amount paid at check-out, i.e., the amount on the receipt. The code should

 4. Write Python code that will ask the user to enter

4. Write Python code that will ask the user to enter the amount paid at check-out, i.e., the amount on the receipt. The code should then compute the amount of state and county sales taxes paid. Assume the state sales tax is 6 percent and the county sales tax is 1.5 percent. The code should then display the amount paid for the goods/services, the state sales tax paid, the county sales tax paid, and the total amount. For example: >>> Enter receipt amount: 452.24 Purchase amount: State tax: County tax: 420.69 25.24 6.31 Total: 452.24 5. Write Python code that asks the use to enter a US dollar amount and then automatically shows how to pay the amount using the smallest number of physical currency. You may only use standard Python, that is, you may NOT use any external libraries, nor use if statements, while nor for loops to answer this question. For example: >>> Enter a dollar amount: 420.69 4 1 0 $100 bills: $50 bills: $20 bills: $10 bills: $5 bills: $1 bills: quarters: dimes: nickels: pennies: 2 1 1 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!