Question: In this module you will create an electronic shopping cart that keeps count of the number of items in the cart and the total cost

In this module you will create an electronic shopping cart that keeps count of the number of items in the cart and the total cost of the items. The program will not let you spend more than your limit. Helpful hints Declare variables maximum, item, discount, DiscountPercent, and many as integers. Declare Available, price, total and GrandTotal as real. Initialize many, count, and GrandTotal to 0 Use a while loop Remember the = sign assigns the value on the right side to the variable on the left side Ex: x=5 assigns x the value of 5 Remember the == sign assigns checks for equality Ex: X==5 checks to see if the variable x is equal to 5 The program should ask the user how much money he/she can spend Ex: " You have $ " & Available & " dollars to spend. Select your Items by choosing the number of the item from the list below or 0 to check out" The program should display the Items to be purchased and any discount amount Ex: "1) Roses = $75.00 per 1/2 dozen (25% discount) " & "2) Hair extensions = $100 per pack (10% discount) " & "3) Male Jeans = $150.00 " & "4)Female Jeans = $175.00 (5% discount)"& "5)Jordans = $200.00 " The program should ask the user for the number of the item he/she wish to buy The program should stop (exit) if the user enters 0 Ex: "Enter the number corresponding to the item you desire" The program should ask how many of the item the user wish to purchase? Ex: "How many of this Item would you like" The program should ask the user if the item has a discount and apply the discount if yes Ex: "Does this Item have a discount? Enter 1 for yes or 2 for no " If yes, the program should ask the user how much the discount is and apply the discount Ex: "what is the % of the discount" The program should keep a running count of how many items the user has purchased The program should add 7% tax to the total If the user attempts to purchase items that cost more than the money the user has, the program should not allow the purchase and notify the user that the purchase cannot be processed. Ex: "you only have " & available &" you cannot make this purchase" After each purchase the program should tell the user how many items are in the shopping cart, how much money he/she has spent and how much money the user has left Ex: "you have " & count & " items in your cart. Your total cost is quot; & GrandTotal

Please respond with python code, or flowgorithm flow chart

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres a Python code implementing the described shopping cart functionality Declare variables maximum 0 item 0 discount 0 DiscountPercent 0 many 0 Avai... View full answer

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 Programming Questions!