Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started