Question: Description: Write a menu-driven program named Buyltemscpp that provides the following options: 1. Buy items by asI-cing for the item's description, price per item and

Description: Write a menu-driven program named \"Buyltemscpp\" that provides the following options: 1. Buy items by asI-cing for the item's description, price per item and the quantity 2. Show receipts by listing all the purchases 3. Show summary by listing only the number of purchases and the total purchase cost Requirements: 1. The program must produce the provided expected sample output. 2. The user must enter the correct \"access code" which is one of the followings {12345 or 54321} in order to start the program. 3. There is no anay. just simply use string and string concatenation to keep track of the purchase history. 4. The program should NOT have any global variables 5 The program should have at least 3 functions and some documentation including your name and program's description Required error handling: The program lvlLlST perform the following checks: 1. Caseinsensitive when to ask the user to confirm exiting the program {e.g. accepting both \"it\" and 'y'} Check for bad access code and allow up to 3 trials. Check for negative or invalid price andi'or quantity Check for invalid menu answer th-\"N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
