Write a C++ program implementing the use of Object Oriented Programming that would simulate a supermarket cash register receipt. The program should start by displaying the Supermarket's Name and business motto ... for example BRODIES - SERVICE, VALUE , SATISFACTION. Then goes on to ask the user enter the customer name and customer type. The customer name should be saved by means of a function for later display. The customer type should be 1) Walk in 2) Regular 3) Loyal. Walk-in customers normally do not get a discount, Regular customers get 10% off all purchases and Loyal customers who pay an annual fee get 10% discount and 5% rebate on all purchases.
The program is expected to enter item names , quantity and if taxable. Set at least 15 items of your choice as constants some examples are : groceries, general merchandise, produce, cosmetics, beverage, toys, clothing, etc. with their respective prices. The program should set the prices based on taxability, item name and quantity for all the items entered by means of a loop terminated by an appropriate sentinel. Not all items are taxable and the ones that are incurs an additional rate of 12.5%.
The program should display all the customer's name, the current date and time (using header as subheadings and in columnar form a list of all the items purchased, their quantity, N or T for nontaxable and taxable respectively, and the item total.
At the end of the receipt should have the GST tax subtotal and the total for the receiptas well as the amount tendered for payment and the change. Concluding the receipt should be a sentiment such as Have a Nice day! [50 marks]
Leeroy_1 0 Newbie Poster
rproffitt 2,662 "Nothing to see here." Moderator
thines01 401 Postaholic Team Colleague Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.