- Questions
- programming
Write a program C++ that allow the shop staff to enter the customer's orders, record payments, view all the completed orders as listing of sales, print the highest and total sales made for the day from Main Menu below
#################################
Coffee Shop
Main Menu
#################################
1--Order
2--Sales Made
Please Enter Your Option: []
The order represents an order a customer will make when they come to the coffee shop. Each order can contain no more than 3 items. Below is suggested sample order menu:
######################################
Coffee
Order Menu
######################################
Please Enter Your Number of Order(s):[]
R--Return to main menu
Assume Staff entered 2 as customer's order in above Order menu and below should be following suggested menu that the program will allow staff enter the choice of items for twice. The same item should not be entered twice.
######################################
Coffee Shop
Order Menu
######################################
Item Price (RM)
F--Fruit Juice 2.50
I--Ice Cream 3.00
C--Cake 3.50
Please Enter Your Choice:[F]
Please Enter Your Choice:[I]
From Order Menu shows customer ordered one Fruit Juice and one Ice cream, which will cost RM7.50 which will be presented in receipt as sample in next page
########################################
Coffee Shop
Receipt
#######################################
Item Qty Price (RM)
Fruit Juice 1 2.50
Ice Cream 1 3.00
_______________________________________
Total 7.50
Payment :RM 10.00
Balance :RM 2.50
Once this is completed the one user there should be a option to go to next customer or close counter
########################################
Coffee Shop
########################################
[1]Next Customer
[2]Close Counter
Your Option:
If the user chose Next Customer, the progrm should loop back to menu and continue with the next customer order, else if the customer choose close counter. Then the program should produce a summary of sales per day.
########################################
Coffee shop
Summary Per day
########################################
item Qty Price(RM)
Fruit Juice 10 22.50
Ice Cream 5 15.00
________________________________________
Total 37.50
Highest sale: RM 12.00
Lowest sale: RM 2.00
Orders are considered completed one the customer makes the payment for the order and the sales, will be recorded so staff could review listing sales, print highest, lowest, and total sales made for the day
- 👍
- 👎
- 👁
- ℹ️
- 🚩
-
We do not take programming contracts.
However, if you post pseudocodes, or codes, we will be glad to help you spot errors, or give suggestions.
If you have difficulties getting started, please post stating what you have learned in your course, and where you difficulties are. We'll try to help from there.- 👍
- 👎
- ℹ️
- 🚩
MathMate
Answer this Question
Related Questions
-
mathematics word problems
Club members wrote a program together, with several people working on each of 4 parts. If the first part of the program required 1/3 of the total time, the second part needed 1/2 of the remaining time, the third part took 30 minutes, and the fourth part
-
accounting
in the blank space beside each adjustin entry, enter the letter of the explanation A through F that most closely describes the entry. A. to record this periods depreciation expense B. to record accrued salaries expense. C. to record this period's use of a
-
C programming
Question: Write a program that reads integers from the keyboard until the user enters the sentinel value -999. The program should then print the minimum integer read, the maximum integer read and the average of all the integers. (Excluding the sentinel
-
Programming
Write a program (pseudocode) that would calculate and display the results for the multiplication table for values ranging from 1 to 100. This what I have so far: Declare X, Y, Z As Integer Write “10 x 10 Multiplication Table” For (X = 1; X
-
Computer Programming
/* Develop a C program that will determine if a department store customer has exceeded the credit limit on a charge account. For each customer, the following facts are available: a) account number b) Balance at the beginning of the month c) Total of all
-
Operations Management
Joe Henry's machine shop uses 2,500 brackets during the course of a year. These brackets are purchased from a supplier 90 miles away. the following information is known about the brackets. annual demand 2,500 holding cost per bracket per year $1.50 order
-
Math
If you purchase a fishing boat for 18 monthly payments of $106 and an interest charge of $238, how much is the refund after 10 payments
-
science
Write a program that will accept two numbers. The program must calculate the LCM and HCF of the numbers and display it.
-
Accounting
Classify the following adjusting entries as involving prepaid expenses (PE), unearned revenues (UR), accrued expenses (AE), or accrued revenues (AR). a. To record revenue earned that was previously received as cash in advance. b. To record annual
-
MATH
WRITE A SIMPLE BUT A COMPLETE FORTRAN PROGRAM TO COMPUTE THE AVERAGE OF SIX NUMBERS AND DISPLAY THE NUMBERS, SUM AND AVVERAGE. THE PROGRAM SHOULD TERMINATE WHEN ZERO IS ENTERED AS A NUMBER. THE PROGRAM SHOULD BE EDUCATIVE
Still need help?
You can ask a new question or browse existing questions.