Question: Write a Python program (shoppingcart.py) that does the following: Print a message that says Welcome to the Healthy Fruits Shop! Print Please enter how many
Write a Python program (shoppingcart.py) that does the following: Print a message that says "Welcome to the Healthy Fruits Shop! Print Please enter how many raspberries Print "Please enter how many pounds of strawberries you would like to buy ($1.25 per pound):. Store the customer entered value in you would like to buy (S1.75 per pound):". Store the customer entered value in a variable. a variable. Print "Please enter how many apples you would like to buy (So.5 per apple):" Store the customer entered value in a variable. Print"Please enter how many mangoes you would like to buy ($1.75 per mango): Stdre the customer entered value in a variable. Compute and display the total owed by the customer. Now ask the customer to enter an amount to pay for the fruits and vegetables and store that value in a variable. Check to see if the customer entered amount is greater than the amount owed to the store. If not, show a message to the customer and ask them to enter more money. Add the entered money to the previously entered money Compute and Display the change owed to the customer Now compute the number of $5. $1, quarters, dimes, nickels, and pennies required to return that change to the customer Display only the amount of change that must be disbursed to the customer. Here are some test cases: If the total is $14.75 and the customer gives you S20, then your program must display The change is S5.25 Give the customer 1 $5 note, and 1 quarter. o If the total is $33-35 and the customer gives you $40, then your program must display "The change is $6.65. Give the customer 1 $5 note, 1 $1 note, 2 quarters, 1 dime, and i nickel
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
