Question
The program will display two options at the beginning of the program, Customer and Manager. Customer: If this is a new customer, the program will
The program will display two options at the beginning of the program, Customer and Manager.
Customer:
If this is a new customer, the program will let customer to register with their information and assign a unique ID number to the new customer.
The customer will enter the customer id every time when they are shopping in your store and the program will keep tracking the total amount the customer spend each time to determine the discount level. You can create your discount level rule or use the rule in the assignment 4.
The program has to keep tracking the products inventory. If customer select the product that is out of stock, the program has to display a warning message and let customer continue to shop. After customer finish selecting the products, the program will calculate the subtotal, apply the discount, calculate the tax, and the total. The program will display a receipt on the screen and save it to a text file with customer information. (Just like the HEB receipt).
Manager:
The manager option has to be password protected. The program will give the manager two option:
Display the inventory: display all the products stock information
Restock the products: add more stock for each product
You have to create different classes and utilize the inheritance features. You have to text files to keep all the information the program need. You can check some on-line store to get some ideas (Amazon, Walmart …). Make sure your program does not end unexpectedly and let user have the option to continue.
Step by Step Solution
3.31 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
copyable code include ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started