Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(PLEASE ANSWER THIS WITH WHAT IS EXACTLY SUPPOSED TO BE WRITTEN IN THIS CODE BASED OFF THE INFO: CUSTOMER NAME: SARA SINCLAIR) Description: In this

(PLEASE ANSWER THIS WITH WHAT IS EXACTLY SUPPOSED TO BE WRITTEN IN THIS CODE BASED OFF THE INFO: CUSTOMER NAME: SARA SINCLAIR) 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: 1.Output must be labeled and easy to read as shown in the sample below. 2.Naming convention should be followed for all variables. 3.Program must be self-documenting with comments and meaning variable names. More Requirements: 1.Use the cout statement to prompt the customer for the name of the function. 2.Prompt the customer for his/her full name. 3.Use the getline function to input the name of the event and the customers name. 4.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). 5.Prompt the customer to enter the number of guests attending the dinner. 6.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. 7.When calculating the number of servers use the function ceil to round up. The code for ceil is roundedUpNumber = ceil(numberOfServers). 8.Each dinner will cost $26.70. Make cost per dinner a constant. 9.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. 10.Flowchart the program. Sample output: Submit: Upload the following to the drop box: Your .cpp file (not zipped) from within the project folder Screen shot of your code and output. ***(I am using Visual Studio C++ for this)*** ( You may also use the name Sara Sinclair as person, Spring Dinner as event)****

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

When would you use one approach, and when would you use another?

Answered: 1 week ago

Question

3. How would this philosophy fit in your organization?

Answered: 1 week ago