Question: Write a c + + program for stationary store that allows the user to create a bill. - The store offers five items: pen, pencil,
Write a c program for stationary store that allows the user to create a bill.
The store offers five items: pen, pencil, notepad, paper and staples with corresponding price of and respectively
The program should prompt the user to select an item and enter the quantity.
If the selected item is not from the list, the user should be ask to reenter their choice
Once the user has finished selecting items by entering finish the program should print thew bill.
Sample Output
Welcome to the Stationary Store!
Available Items:
A Pen RM
B Pencil RM
C Notepad RM
ID Paper RM
E Staples RM
Enter 'finish' to complete purchase
Please enter the item number you'd like to purchase AE: B
Enter the quantity:
Please enter the item number you'd like to purchase AE: D
Enter the quantity:
Please enter the item number you'd like to purchase AE: F
Invalid choice. Please enter a valid item number.
Please enter the item number you'd like to purchase AE: C
Enter the quantity:
Please enter the item number you'd like to purchase AE: E
Enter the quantity:
Please enter the item number you'd like to purchase AE: finish
Thank you for your purchase!
Your Bill:
ITEM QUANTITY PRICE
PENCIL RM
PAPER RM
NOTEPAD RM
STAPLES RM
Total Bill: RM
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
