Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please only use C Programming Language. Only use else if statements or switch. no arrays Follow example. Clean fast thumbs up You are in charge
Please only use C Programming Language. Only use else if statements or switch. no arrays
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 incurfing food and activibes, Aifer reseurchine the possibilities, you have considered three puckagesi: Each package charges a minimum fee for the first hour of room rental, and an additional fee every hour in exoess of the first hour. The maxienum duration possihle for reserving per ifry i5. 4 hours. There is a maximum charge for room rental for an event. Write a program that calculates and pints the total charge for a selected package, the duration, and food and activities itased on the number of pecpio atiending. Piequirements The iser enters the package selection, enter the number of hours, and number of people, The program calculates and prints the chorge. Follow the format of the enarneles bethw. number of hour." and ext the ptoeram. Examples (your program must follow this format precisely) Example =1 Fequirernents The user enters the pachage selection, enter the number of hours, and number of people. The program calculates and ptints the charge. Follow the firnat of the exaingler belew Yaur propram should validate the packaze selection. If the selection is not in the range af 1 to 3 , print the message "inwalif selection 5 elect frove 1 fo 3 and ewit che program. number of hours" and exit the program. Examples (your program must follow this format precisely) Example a 1 pteave geapet tron thrie packenai, 1,2 , and 1 Anter patione intinctiont 1 thice wathil Examole an Thith hawivil Gaterioner or ichoin, isol Fxartiple wa Follow example. Clean fast thumbs up
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