Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

5. Write a program that determines whether a meeting room is in violation of fire law regulations regarding the maximum room capacity. The pro- gram

image text in transcribed
5. Write a program that determines whether a meeting room is in violation of fire law regulations regarding the maximum room capacity. The pro- gram will read in the maximum room capacity and the number of people attending the meeting. If the number of people is less than or equal to the maximum room capacity, the program announces that it is legal to hold the meeting and tells how many additional people may legally attend. If the number of people exceeds the maximum room capacity, the program announces that the meeting cannot be held as planned due to fire regula- tions and tells how many people must be exluded in order to meet the fire regulations. For a harder version, write your program so that it allows the calculation to be repeated as often as the user wishes. If this is a class exercise, ask your instructor whether you should do this harder version

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

More Books

Students also viewed these Databases questions

Question

Is short-selling good for the stock markets?

Answered: 1 week ago

Question

here) and other areas you consider relevant.

Answered: 1 week ago