Write a Program in C++ for a grocery shop payment bill/ receipt. The program should displaythe final bill/receipt in the following format with and without built-in formatting functions e.g.,setw().Note: You are not required to input the data and perform calculations for Ex 2.1. Youare required to output the data in the correct format.\” Food Stuff Grocery Shop”/Customer Name: SalimITEM PRICE Sales Tax+ VAT Sub-Total-------- --------- ----------------------- ----------------Fresh Milk 1.0 OMR 0.05 1.05 OMRApple 2.0 OMR 0.10 2.10 OMRBread 0.8 OMR 0.05 1.30 OMRCoffee 2.5 OMR 0.15 2.65 OMR-----------------------------------------------------------------------------------------------------------------------Gross Bill ------------ 7.1 OMRDiscount ------------- 5%Net Bill --------------- 6.745 OMR
Write a C++ program to automate the Grocery shop bill/receipt generation given in the Ex 2.1above for at least 5 items. The program asks grocery shop assistant to enter Customer’s name, Itemname, cost, and sales tax and VAT. The program calculates the sub-total (cost + tax), gross total,and Net total after applying 5% discount on the gross total. The program finally outputs the finalbill/receipt in the proper format.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here