Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Can you please help me with the code? Thank you so much. 1. Dessert Shop Part 4: Console Application Problem In this part of the

Can you please help me with the code?
Thank you so much.
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
1. Dessert Shop Part 4: Console Application Problem In this part of the project, you add a command line user interface to your program. To do this, you will make changes to module. Big Note: As of Dec 2022, the command executes Python 3.6.8 in the Codio environment. This is a Codio thing we are working to get changed. Changes to dessertshop module Add five new functions to the module: - main_menu() - user_prompt_candy() - user_prompt_cookie() - user_prompt_icecream() - user_prompt_sundae() main_menu should do the following: 1. present the user a menu of options 2. get user input 3. validate the input 4. convert input values to the proper types as-needed 5. call the correct submenu 6. return the order to the caller 1. Dessert Shop Part 4: Console Application 6. return the order to the caller Submenus should do the following: 1. prompt user for enough input to create the required line item on the receipt 2. get user input 3. validate the input 4. convert input values to the proper types as-needed 5. create an object of the proper type 6. return the newly created object to the caller The menus and options presented to the user should match what is shown in the example scenario below. receipt module Upload a copy of your file form Part 3 into Part 4 . If you implemented it correctly in Part 3, no changes should be needed for Part 4. Test Cases There are no automated new test cases to add. Run your existing test cases to make sure they still pass. Test each one of the menu options in the user interface you just added to make sure they work correctly. You will do this by inspection. 1: Candy 2: Cookie 3: Ice Cream 4: Sundae What would you like to add to the order? (1-4, Enter for done): 2 Enter the type of cookie: Chocolate Chip Macadamia Enter the quantity purchased: 5 Enter the price per dozen: 4.99 1: Candy 2: Cookie 3: Ice Cream 4: Sundae What would you like to add to the order? (1-4, Enter for done): 3 Enter the type of ice cream: Mint Chocolate Chip Enter the number of scoops: 4 Enter the price per scoop: 89 1: Candy 2: Cookie 3: Ice Cream 4: Sundae What would you like to add to the order? (1-4, Enter for done):4 Enter the type of ice cream: Vanilla Enter the number of scoops: 3 Enter the price per scoop: 89 1. Dessert Shop Part 4: Console Application What would you like to add to the order? (1-4. Enter for done):4 Enter the type of ice cream: Vanilla Enter the number of scoops: 3 Enter the price per scoop: 89 Enter the topping: Sprinkles Enter the price for the topping: 5 1: Candy 2: Cookie 3: Ice Cream 4: Sundae What would you like to add to the order? (1-4, Enter for done): Example Receipt The receipt shown does not exactly match the scenario above, but shows you wha would be printed on the PDF receipt if these are the items you ordered. The actual receipt should be in file

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What do you think is likely to be Liams problem? Discuss.

Answered: 1 week ago