Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help. this is what I have so far just need help with displaying the charge. code in c fou are in charge of phanning

please help. this is what I have so far just need help with displaying the charge. code in c image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
fou are in charge of phanning a holiday party for your organizationat a venue nearby. which meant that you have to organize the details including food and activities. After rescarching the possibilities, you have considered three packages. Each package charger 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 poss ble for reserving per day is 4 hours. There is a maximum charge for roorn rental for an event. Write a progam that calculates and prints the total charge for a selected package, the duration, and food and activities foased on the number of people attending. Requirements The user enters the nackage selection, enter the number of hours, and number of people. The progarn calculates and prints the chiarge. Follow the format of the camples below. Your proy am shoudd validate the padkage selietion if the selection is not in the range of 1 to 3 , print the mesage "hnublid selection. Select from 1 to 3 ." and ext the progam. You prograch should validite the hours fented. If the number entered is less than 1 or prest than 4 , orint the nossage "invalid input. Enter a positive number ieut than of equof to 4 for number of hour.' and toit the program. Your piogram should validate the number of peonle if the number of people entered is iess than the minimum manber of guests of areater than the room orit the propram: Your program should validate the number of people. If the number of people entered is less than the n capacity for the package selected, print a message ("Not meeting minimum requirement for number of gu 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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

Identify several ways to make better decisions about retirement.

Answered: 1 week ago