Question: C++ Implement the class SuperMarket that has: Method called greetings: ask the customer name; check the time, greeting the customer properly; e.g. good morning, afternoon,
C++
Implement the class SuperMarket that has:
Method called greetings: ask the customer name; check the time, greeting the customer properly; e.g. good morning, afternoon, evening
Method called menu: like an ATM, ask the user to select from a list of 5 items which items was purchased, how many of each item
Method called bill: calculates the amount to be paid by customer
Method printInvoice: print in a formatted way, just like as in a supermarket receipt, item description, amount purchased, total on that item, and final total to be paid
Method read_datafile: this method read the file that should contain in each line the product name and the price; e.g.
Shampoo 6.99
Apple each 0.35 Etc
Method print_receipt: the receipt should be printed in a file that will be generated for each customer, having the customer name as the file name; e.g. johndoe_receipt.txt paulgreen_receipt.txt
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
