Assignment 1

2
Programming Fundamentals Institute of Computing Assignment #1 Write a program that simulates a grocery point-of-sale (POS) system. First, the program will ask the name of the cashier on- duty and the date of transaction. Then it proceeds to accepting three (3) grocery items. In each grocery item entry, the program will prompt for the following input: item name, price, and quantity. The final price of an item is subject to a 12% Value-Added Tax (VAT). Your program should automatically generate the final taxed price after the cashier entered the raw price. Your program should also automatically generate the total price of purchased items after the cashier entered the quantity of items. After all three grocery items are entered the program will compute the grand total price and then prompts for the amount received from customer. The program would then automatically compute and display the change. Finally, the program will display the transaction information in receipt format. For further guidance, see the sample run of the application in the accompanying text file: Assignment#1.txt Submission Instructions (Failure to follow merits rejection of submission): Deadline: December. 4, before 10PM File naming format: LastnameFNI_LastnameFNI_Assign1.cpp

description

for education purpose

Transcript of Assignment 1

Page 1: Assignment 1

Programming Fundamentals Institute of Computing

Assignment #1

Write a program that simulates a grocery point-of-sale (POS) system. First, the program will ask the name of the cashier on-duty and the date of transaction. Then it proceeds to accepting three (3) grocery items.

In each grocery item entry, the program will prompt for the following input: item name, price, and quantity.

The final price of an item is subject to a 12% Value-Added Tax (VAT). Your program should automatically generate the final taxed price after the cashier entered the raw price. Your program should also automatically generate the total price of purchased items after the cashier entered the quantity of items.

After all three grocery items are entered the program will compute the grand total price and then prompts for the amount received from customer.

The program would then automatically compute and display the change.

Finally, the program will display the transaction information in receipt format.

For further guidance, see the sample run of the application in the accompanying text file: Assignment#1.txt

Submission Instructions (Failure to follow merits rejection of submission):

Deadline: December. 4, before 10PM File naming format: LastnameFNI_LastnameFNI_Assign1.cpp Write your full name as a C++ comment in the first line of the code. E-mail your file to [email protected] with the subject header:

CS12_MATH_Assign1 Write your full name in the e-mail body.