Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python Problem 1 (Taking Orders) Write a program called a2p1.py that creates a linear text-based purchasing system for Dino's International Doughnut Shoppe. For this first

python

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Problem 1 (Taking Orders) Write a program called a2p1.py that creates a linear text-based purchasing system for Dino's International Doughnut Shoppe. For this first part, you'll build a menu system that allows customers to purchase quantities of a single type of doughnut. The program should start by asking the customer for their name. Next it should display a menu that asks the user to select one of the following 4 kinds of doughnuts 1. Chocolate-dipped Maple Puff ($3.50 each) 2. Strawberry Twizzler ($2.25 each) 3. Vanilla Chai Strudel ($4.05 each) 4. Honey-drizzled Lemon Dutchie ($1.99) The user should make their selection by entering the corresponding number. It is possible the user will enter any type of data, including text, floating point numbers, negative numbers, etc.. Invalid selections should be handled with a suitable error message and the menu should be repeated. Once the customer has selected a variety, the program should ask how many of that variety the customer would like. Following this, the program should provide the user with their receipt (report the variety, quantity, and total cost of the user's order). Dino has made a special request that when telling the customer their order's cost that the program be personable and use the customer's name Problem 1 (Taking Orders) Write a program called a2p1.py that creates a linear text-based purchasing system for Dino's International Doughnut Shoppe. For this first part, you'll build a menu system that allows customers to purchase quantities of a single type of doughnut. The program should start by asking the customer for their name. Next it should display a menu that asks the user to select one of the following 4 kinds of doughnuts 1. Chocolate-dipped Maple Puff ($3.50 each) 2. Strawberry Twizzler ($2.25 each) 3. Vanilla Chai Strudel ($4.05 each) 4. Honey-drizzled Lemon Dutchie ($1.99) The user should make their selection by entering the corresponding number. It is possible the user will enter any type of data, including text, floating point numbers, negative numbers, etc.. Invalid selections should be handled with a suitable error message and the menu should be repeated. Once the customer has selected a variety, the program should ask how many of that variety the customer would like. Following this, the program should provide the user with their receipt (report the variety, quantity, and total cost of the user's order). Dino has made a special request that when telling the customer their order's cost that the program be personable and use the customer's name

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

AWS Certified Database Study Guide Specialty DBS-C01 Exam

Authors: Matheus Arrais, Rene Martinez Bravet, Leonardo Ciccone, Angie Nobre Cocharero, Erika Kurauchi, Hugo Rozestraten

1st Edition

1119778956, 978-1119778950

More Books

Students also viewed these Databases questions