My Daddy Coffee Outlet purchases and roasts high-quality whole bean coffees and sells them along with fresh, rich-brewed, Italian style espresso beverages through its company-operated retail stores. As an appreciation for their customers, My Daddy Coffee Outlet decided to give discounts to their buyers. The buyers will get discount price off from their total price of purchased. The discount is based on the following: Total purchase (RM) Discount < RM30.00 30.00 <= Purchase < RM 60.00 60.00 <= Purchase < RM 100.00 >= RM100 5% of total price 10% of total price 15% of total price 20% of total price The program will accept the total purchase from the user and prints out the total discount and price after discount. Use manipulator for all appropriate items. The program allow the user to repeat the program as they wish
Tasks:
- Write a complete C++ program.
- b. Submission :
- Complete program (printed)
- Screenshot (2 sample of input and output for each question)
QUESTION 1
My Daddy Coffee Outlet purchases and roasts high-quality whole bean coffees and sells them along with fresh, rich-brewed, Italian style espresso beverages through its company-operated retail stores.
As an appreciation for their customers, My Daddy Coffee Outlet decided to give discounts to their buyers. The buyers will get discount price off from their total price of purchased. The discount is based on the following:
Total purchase (RM) |
Discount |
< RM30.00 30.00 <= Purchase < RM 60.00 60.00 <= Purchase < RM 100.00 >= RM100 |
5% of total price 10% of total price 15% of total price 20% of total price |
The program will accept the total purchase from the user and prints out the total discount and price after discount. Use manipulator for all appropriate items. The program allow the user to repeat the program as they wish.
Step by step
Solved in 3 steps with 1 images