logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Malachi StoneStatistics
(5/5)

970 Answers

Hire Me
expert
Kate DuggannMathematics
(5/5)

711 Answers

Hire Me
expert
Maria SarapovaEducation
(5/5)

848 Answers

Hire Me
expert
Ritesh GrewalBusiness
(5/5)

567 Answers

Hire Me
Python Programming

take orders for multiple shopping carts for each category, display a submenu of specific items after that category is selected

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS
  1. take orders for multiple shopping carts

…for each category, display a submenu of specific items after that category is selected

  1. the submenu includes a specific named item and its price
  2. collect and validate the item selection number, flag an invalid selection
  3. keep a list of each category’s specific item cost – use a list (or tuple or dictionary) to translate the selected item’s menu number into a price (see below for the named items and prices)
  4. 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 6. redisplay the item menu until ‘x’ is selected, at which point the category menu is selected
  5. redisplay the main category menu and continue processing until ‘c’ (checkout) is selected from the category menu
  6. print the checkout summary– the format should display dollars and cents using the print formatting statements shown in class
  7. ask whether more carts are to be processed
  8. continue until no more carts are desired by the user
  9. print a session summary that includes total number of carts, items, and cost of all carts processed

 

The category menu will display one of four choices :

The following submenu will be displayed for the Books selection when category ‘1’ is selected:

 

Extra clarification:

The user enters a selection and the program validates it is one of the above (1 through 3 or ‘x’). If 1, 2, or 3, the program adds the selected item and price to the totals for that category. Selecting an item adds one item to the cart (which should be implemented as a list) and one price, so your program represents the cart as a list of lists. The sublists are [, price], e.g., [“Grant”, 24.95]. If two of the same items are desired they must be selected twice and recorded twice in the cart. If ‘x’ is selected, the category menu is redisplayed. Otherwise the same item submenu is redisplayed.

The menu is displayed for more selections until the user selects ‘c’ (checkout). When checkout is selected the program iterates through the cart (list) and prints a report showing each item in the cart, its price, the total number of items in the cart, and the total price of all items in the cart. The item description, count, and price formatting be of good quality: no ragged columns and dollars and cents displayed using two digits to the right of the decimal point.

The program then asks if there are more carts to process and, if yes, repeats the above. If not, the totals for all carts and all item counts and costs is printed.

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. This  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

326 Experts Online