A coffee shop is operated by 3 brothers on 3 different shifts. The first brother runs the shop before noon shift, the se

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

A coffee shop is operated by 3 brothers on 3 different shifts. The first brother runs the shop before noon shift, the se

Post by answerhappygod »

A Coffee Shop Is Operated By 3 Brothers On 3 Different Shifts The First Brother Runs The Shop Before Noon Shift The Se 1
A Coffee Shop Is Operated By 3 Brothers On 3 Different Shifts The First Brother Runs The Shop Before Noon Shift The Se 1 (71.74 KiB) Viewed 46 times
A coffee shop is operated by 3 brothers on 3 different shifts. The first brother runs the shop before noon shift, the second brother runs the afternoon shift and the third brother runs the evening shift. For each shift an unknown number of customers will visit the shop to order coffee. Write a C++ program that repeats for the 3 shifts (use while or for loop, 5 points). On each shift, the brother will be capable to input the customer order (number of cups bought and the cup price) and the program will output the money to be paid (5 points). This process can be repeated as long as there are still customers coming in during the shift (use loop sentinel, 10 points). At the end of each shift, the program will display the amount of money collected from all customers (5 points). Finally, the program will display the total amount collected from the 3 shifts with significant message as follows: (5 points) Total amount >= 5000000 ➜ Excellent work 5000000<total_amount <=3000000 Total amount <3000000 ➜ Poor work Good work
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply