Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CIS 1111 Programming Topic 6 -Decisions 20 Points Desuiption: In this assignment, you will develop a C propram that will process applications for gala-type events
CIS 1111 Programming Topic 6 -Decisions 20 Points Desuiption: In this assignment, you will develop a C propram that will process applications for gala-type events at a local dinner dub. The club, Gala Events Inc, is currently booking events for the upcorning holidays However; the club has the following restrictions: Due to the physical size of the building, its maximurn occupancy for any event is 100, not incduding the club statf Since local regulations do not permit the sale of alcoholic beverages after midnight, the maximum length of any event is 6 hurs (360 minutes) Event Requirements; Wirite 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 ating the restriction and how it can be met. Display a message to the oustomer if the number of dinners ordered exceed the number of guests attending the event (See Reguirement 10 below.J. Do not calculate any event costs untal 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 propram. 3. Prompt the customer for the name of the event 4. Prompt the customer for their full name. s. Use the getling function to input the name of the event and the customer's name 6. Prompt the custoner to enter the number of guests attending. Validate this number against the club's 7. 8. 9. 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 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. Then, if necessary, round the server hours to the next whole hour 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. 11. Calculate and output the total cost for the event along with the average cost per person. The caterer requires a 12. Output must be labeled and easy to read as shown in the samples below 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. 25% deposit on the event. All decimals must line up in the output. 13. Flowchart the program. Constants Number of guest per serer Hourly wage per server Remaining minute wage 20 1850 0.50 Chicken 24.5 32.5 19.5 Vegetarian Minutes 125 59 61 Number hours Number minutes remainder Number of guests Number of servers Cost per server Total Cost of servers 59 395 29.5 79.00 2950 777.00 57.00 19 Food for all guests Chicken 10 100 10 15 10 I 10 30 635.00 310.50 3,067.50 1,155.00 14.00 34000 3,84450 1,21200 27.46 22.67 30.76 24.24 17850 8500 961.13 303.00 535.50 255.00 2,883.38 909.00 10 13 Total Food Total cost of the event Average cost per person Remaining to pay
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