Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Description : In this assignment, you will develop a C++ program that will process applications for gala-type events at a local dinner club. The club,

Description: 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 events 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:

Follow the Naming Convention for all variables and constants.

Supply good program comments so another programmer can read and understand your program.

Prompt the customer for the name of the event.

Prompt the customer for their full name.

Use the getline function to input the name of the event and the customers name.

Prompt the customer to enter the number of guests attending. Validate this number against the clubs maximum capacity.

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.

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 or ceil.

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, so the servers will be paid for 5 hours. Calculate the number of hours. Then, if necessary, round the server hours to the next whole hour. Hint: Use modulus operator or ceil.

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).

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.

Output must be labeled and easy to read as shown in the samples below.

Sample Outputs

image text in transcribed

1) have the user enter:

-event name: Fall Bizarre

-customer name: Sara Sophisticate

-number of guests: 120

-chicken dinners: 30

-salmon dinners: 40

-vegetarian dinners: 30

-event minutes: 360

2) have the user enter:

-event name: Fall Bizarre

-customer name: Sara Sophisticate

-number of guests: 100

-chicken dinners: 30

-salmon dinners: 40

-vegetarian dinners: 30

-event minutes: 400

3) have the user enter:

-event name: Fall Bizarre

-customer name: Sara Sophisticate

-number of guests: 100

-chicken dinners: 30

-salmon dinners: 30

-vegetarian dinners: 30

-event minutes: 360

4) have the user enter the following data:

-event name: Fall Bizarre

-customer name: Sara Sophisticate

-number of guests: 95

-chicken dinners: 30

-salmon dinners: 35

-vegetarian dinners: 30

-event minutes: 360

Gala Events Inc. Enter event name: Holiday Season Event Enter customer full name: Susie Eventmaker Enter number of guests: 125 Your number of guests exceeds our club capacity of 100 guests. Either decrease the number of guests below 10e or find another venue. Gala Events Inc. Enter event name: Holiday Season Event Enter customer full name: Susie Eventmaker Enter number of guests: 90 Enter event length(in minutes): 400 our event length of 400 minutes is longer than the club allows. Either decrease the event length to less than 6 hours or find another venue. Gala Events Inc. Enter event name: Holiday Season Event Enter customer full name: Susie Eventmaker Enter number of guests: 90 Enter event length(in minutes): 270 Enter number of salmon dinners: 40 Enter number of chicken dinners: 30 Enter number of vegetarian dinners: 2!5 The number of dinners ordered exceeds the number of guests Please correct Gala Events Inc. Enter event name: Holiday Season Event Enter customer full name: Susie Eventmaker Enter number of guests: 90 Enter event length(in minutes): 270 Enter number of salmon dinners: 40 Enter number of chicken dinners: 30 Enter number of vegetarian dinners: 2e Number of Servers: Cost of Servers: $462.50 Salmon dinners cost at $32.50 each: $1300.00 Chicken dinners cost at $24.50 each $735.00 Vegetarian dinners cost at $19.50 each $390.00 Total Cost: $1887.50 Deposit Amount: $471.88 Press any key to continue

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

Step: 3

blur-text-image

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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

More Books

Students also viewed these Databases questions

Question

Buna - S is also known as Teflon PTFE SBR Polycrylates

Answered: 1 week ago

Question

How flying airoplane?

Answered: 1 week ago

Question

How We Listen?

Answered: 1 week ago