subject

: In this assignment, you will develop a C++ program that will process applications for gala-type events at a local dinner club. The club, Gala Events Inc., is currently booking events for the upcoming holidays. However; the club has the following restrictions: • Due to the physical size of the building, its maximum occupancy for any event is 100, not including the club staff.
• Since local regulations do not permit the sale of alcoholic beverages after midnight, the maximum length of any event is 6 hours (360 minutes).
Event Requirements:
Write a program that asks the user to enter the name of the event, the customer requesting to book the event, number of people attending the event, the requested length of the event, and the number of catered dinners needed. Validate that the number of people attending the event and the event’s requested length are within the restrictions listed above. If either restriction is not met, display a descriptive error message citing the restriction and how it can be met. Display a message to the customer if the number of dinners ordered exceed the number of guests attending the event (See Requirement 10 below.). Do not calculate any event costs until all the above requirements are met.
Requirements:
1. Follow a Naming Convention for all variables.
2. Supply good program comments so another programmer can read and understand your program.
3. Prompt the customer for the name of the event.
4. Prompt the customer for their full name.
5. Use the getline function to input the name of the event and the customer’s name.
6. Prompt the customer to enter the number of guests attending. Validate this number against the club’s maximum capacity.
7. Prompt the customer for the length of the event (in minutes). Validate the event length against the maximum length allowed. The minutes will also be used to determine the number of hours the servers must be available.
8. There will be one server assigned to every 20 guests. Calculate the number of servers needed. Then, if necessary, round up the number of servers to the next whole server. Hint: Use modulus operator.
9. Servers will be paid $18.50 per hour and for any portion of an hour. For example, 270 minutes is 4 hours and 30 minutes. Calculate the number of hours and minutes. Hint: Use modulus operator.
10. The event will be catered and the guests will have a choice of three dinners. The customer will be asked to enter the number of chicken dinners (24.50 each), the number of salmon dinners (32.50 each) and the number of vegetarian dinners (19.50 each.
11. Calculate and output the total cost for the event along with the average cost per person. The caterer requires a 25% deposit on the event. All decimals must line up in the output.
12. Output must be labeled and easy to read as shown in the samples below.
13. Flowchart the program.

Sample output of data validation:

Sample output of data validation (cont.):

Sample output of event totals:

Test data

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 15:30
In a compound condition, both conditions on either side of the logical operator and must be true for the overall condition to be true. a: true b: false
Answers: 1
question
Computers and Technology, 23.06.2019 13:10
What is domain name system (dns)? allows dynamic ip address allocation so users do not have to have a preconfigured ip address to use the network converts ip addresses into domains, or identifying labels that use a variety of recognizable naming conventions the efficient coexistence of telephone, video, and data communication within a single network, offering convenience and flexibility not possible with separate infrastructures the integration of communication channels into a single service
Answers: 2
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
question
Computers and Technology, 24.06.2019 04:30
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
Answers: 1
You know the right answer?
: In this assignment, you will develop a C++ program that will process applications for gala-type ev...
Questions
question
Mathematics, 02.04.2020 08:39
question
English, 02.04.2020 08:39
question
English, 02.04.2020 08:40