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 1.50,1.00,3.00,5.00, and 7.25 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 re-enter 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 - RM1.5
[B] Pencil - RM1
[C] Notepad -RM3
ID] Paper - RM5
[E]. Staples - RM7.25
(Enter 'finish' to complete purchase)
Please enter the item number you'd like to purchase (A-E): B
Enter the quantity: 3
Please enter the item number you'd like to purchase (A-E): D
Enter the quantity: 2
Please enter the item number you'd like to purchase (A-E): F
Invalid choice. Please enter a valid item number.
Please enter the item number you'd like to purchase (A-E): C
Enter the quantity: 1
Please enter the item number you'd like to purchase (A-E): E
Enter the quantity: 4
Please enter the item number you'd like to purchase (A-E): finish
Thank you for your purchase!
Your Bill:
ITEM QUANTITY PRICE
----------------------------------------------------------------------------------------------------------------
PENCIL 3 RM3
PAPER 2 RM10
NOTEPAD 1 RM3
STAPLES 4 RM29
Total Bill: RM45

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!