…for each category, display a submenu of specific items after that category is selected
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.
DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma
Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t
Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th
1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of
1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of