Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this assignment you will enhance the A2 Python program that processed Amazin.com orders. The enhanced program will 1. take orders for multiple shopping carts

image text in transcribed
image text in transcribed
In this assignment you will enhance the A2 Python program that processed Amazin.com orders. The enhanced program will 1. take orders for multiple shopping carts 2, present the user with the A2 menu of item categories, but ...for each category, display a submenu of specific items after that category is selected 3. the submenu includes a specific item and its price 4. collect and validate the item selection number, flag an invalid selection 5. keep a list of each category's specific item cost use the list to translate the selected item's menu number into a price 6. accumulate the number of category items and category costs selected -the quantity of each selection is one, but repeated selections may be made by selecting them again from the menu 7. redisplay the main category menu and continue processing until 4 (checkout) is selected 8. print the checkout summary as was done for A2-the format should correctly display dollars and cents 9. ask whether more carts are to be processed 10. continue until no more carts are desired by the user 11. Print a session summary that includes total number of carts, items, and cost The following submenu will be displayed for the Books selection: start output> Select a book title from the following list: 1- Origin", S19.95 2-"Grant" $24.50 -Prairie Fires" $18.95 4 - no selection end output The above is only a display menu for the user's . Internally, your program should store the reference information in a list that consists of the item price in the same order that's displayed on the menu. For the above, the list is book list [19.95, 22.50, 18.95] The first list item is the price of "Origin" and is accessed (used in the program) as book list0) "Grant" is book list[I]. etc. The two other categories, electronics and clothing, have similar submenus and reference lists Select an electronics item from the following list: 1 - HP Laptop, $429.50 2- EyePhone 10, $790.00 3- Bose 20 Speakers, $220.00 4 no selection Select a clothing item from the following list: 1 - T-shirt, $9.50 2- Shoes, $45.00 3 Pants, $24.00 4 - no selection In this assignment you will enhance the A2 Python program that processed Amazin.com orders. The enhanced program will 1. take orders for multiple shopping carts 2, present the user with the A2 menu of item categories, but ...for each category, display a submenu of specific items after that category is selected 3. the submenu includes a specific item and its price 4. collect and validate the item selection number, flag an invalid selection 5. keep a list of each category's specific item cost use the list to translate the selected item's menu number into a price 6. accumulate the number of category items and category costs selected -the quantity of each selection is one, but repeated selections may be made by selecting them again from the menu 7. redisplay the main category menu and continue processing until 4 (checkout) is selected 8. print the checkout summary as was done for A2-the format should correctly display dollars and cents 9. ask whether more carts are to be processed 10. continue until no more carts are desired by the user 11. Print a session summary that includes total number of carts, items, and cost The following submenu will be displayed for the Books selection: start output> Select a book title from the following list: 1- Origin", S19.95 2-"Grant" $24.50 -Prairie Fires" $18.95 4 - no selection end output The above is only a display menu for the user's . Internally, your program should store the reference information in a list that consists of the item price in the same order that's displayed on the menu. For the above, the list is book list [19.95, 22.50, 18.95] The first list item is the price of "Origin" and is accessed (used in the program) as book list0) "Grant" is book list[I]. etc. The two other categories, electronics and clothing, have similar submenus and reference lists Select an electronics item from the following list: 1 - HP Laptop, $429.50 2- EyePhone 10, $790.00 3- Bose 20 Speakers, $220.00 4 no selection Select a clothing item from the following list: 1 - T-shirt, $9.50 2- Shoes, $45.00 3 Pants, $24.00 4 - no selection

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

Database Technology And Management Computers And Information Processing Systems For Business

Authors: Robert C. Goldstein

1st Edition

0471887374, 978-0471887379

More Books

Students also viewed these Databases questions