Question: I need help finding this in python. 1.3 Program: Selling Candy Bars (Optional) Chauncey is going into business! The new Chant-a-licious candy bar is ready,

1.3 Program: Selling Candy Bars (Optional) Chauncey is going into business! The new Chant-a-licious candy bar is ready, now only an candy bar selling application is needed. This application will be given an amount of candy bars to sell and then interface with hungry customers to sell the candy bars. Since Chauncey is concerned about student health, we have a policy that each customer can only buy up to 4 candy bars at a time. If a customer does any of the following you should deny the sale: Purchase more than 4 candy bars Try to purchase any less than 1 candy bar Purchase more candy bars than are available After all the candy bars are sold CCU would like to know the total number of buyers for their market research. They have provided an example of how the application should look when ran: Sample Execution Please enter the number of candy bars available: 10 Please enter the number of candy bars to purchase: -1 I'm sorry but I can't sell you that many. Please enter the number of candy bars to purchase: 4 6 candy bars remaining. co search example of how the application should look when ran: Sample Execution Please enter the number of candy bars available: 10 Please enter the number of candy bars to purchase: -1 I'm sorry but I can't sell you that many. Please enter the number of candy bars to purchase: 4 6 candy bars remaining. Please enter the number of candy bars to purchase: 1 5 candy bars remaining. Please enter the number of candy bars to purchase:5 I'm sorry but I can't sell you that many. Please enter the number of candy bars to purchase: 4 1 candy bars remaining. Please enter the number of candy bars to purchase: 1 0 candy bars remaining. Total buyers: 4 LAB 1.3.1: Program: Selling Candy Bars (Optional) ACTIVITY main.py Load de search
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
