Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I n C programming please. Thanks You are in charge of planning a holiday party for your organization at a venue nearby, which meant that

image text in transcribedimage text in transcribed

In C programming please. Thanks

You are in charge of planning a holiday party for your organization at a venue nearby, which meant that you have to organize the details including food and activities. After researching the possibilities, you have considered three packages. Each package charges a minimum fee for the first hour of room rental, and an additional fee every hour in excess of the first hour. The maximum duration possible for reserving per day is 4 hours. There is a maximum charge for room rental for an event. Write a program that calculates and prints the total charge for a selected package, the duration, and food and activities (based on the number of people attending). The user enters the package selection, enter the number of hours, and number of people. The program calculates and prints the charge. Follow the format of the examples below. Your program should validate the package selection. If the selection is not in the range of 1 to 3 , print the message "Invalid selection. Select from 1 to 3." and exit the program. Your program should validate the hours rented. If the number entered is less than 1 or great than 4, print the message "Invalid input. Enter a positive number less than or equal to 4 for number of hours." and exit the program. Your program should validate the number of people. If the number of people entered is less than the minimum number of guests or greater than the room capacity for the package selected, print a message ("Not meeting minimum requirement for number of guests." or "Exceeded maximum number of guests.") and exit the program. Examples (your program must follow this format precisely) Example \#1 Please select from three packages: 1,2, and 3 Enter package selection: 1 Enter hours: 3 Enter number of people: 200 Charge(\$): $5095 Example \#2 Please select from three packages: 1,2, and 3 Enter package selection: 2 Enter hours: 4 Enter number of people: 100 Charge(\$): $2255 Example \#3 Please select from three packages: 1,2, and 3 Enter package selection: 10 Invalid selection. Select from 1 to 3

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

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions