Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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,

I need help finding this in python. image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatial Databases With Application To GIS

Authors: Philippe Rigaux, Michel Scholl, Agnès Voisard

1st Edition

1558605886, 978-1558605886

More Books

Students also viewed these Databases questions

Question

Draw data flow diagrams in a sequence, from general to specific

Answered: 1 week ago

Question

Explain the pages in white the expert taxes

Answered: 1 week ago