Answered step by step
Verified Expert Solution
Question
1 Approved Answer
20 Points Description: In this program you are going to design a program to calculate the cost to cater a dinner. You will also develop
20 Points Description: In this program you are going to design a program to calculate the cost to cater a dinner. You will also develop a program flowchart. The user will enter the number of guests and the length of time (in minutes) for dinner. Requirements: Output must be labeled and easy to read as shown in the sample below. Naming convention should be followed for all variables Program must be self-documenting with comments and meaning va . More Requirements: Use the cout statement to prompt the customer for the name of the function. . Prompt the customer for his/her full name. Use the getline function to input the name of the event and the customer's name. Prompt the customer to enter the length of time (in minutes) for the dinner. The minutes will be used to determine how many hours and minutes you will pay the server(s) . Prompt the customer to enter the number of guests attending the dinner. There will be one server assigned to every 20 guests. Servers make $18.50 per hour and $.50 per minute for every minute over an hour. For example, 123 minutes will be 2 hours and 3 minutes. Use modulus to determine the number minutes. Both cost per minute and per hour will be constants. When calculating the number of servers use the function ceil to round up. The code for ceil is roundedUpNumber . ceil(numberOfservers). .Each dinner will cost $26.70. Make cost per dinner a constant. Calculate the total cost for the event and the average cost per person. The caterer requires a 25% deposit on the event. All decimals must line up in the output. .Flowchart the program
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started