MACHINE PROBLEM No. 4 Write a program that determines whether a meeting room is in violation of fire law regulations regarding the maximum room capacity. The program will read in the maximum room...


Write this in C program. provide the source code and a screenshot that it is working. thank you!


MACHINE PROBLEM No. 4<br>Write a program that determines whether a meeting room is in violation of fire law regulations regarding the<br>maximum room capacity. The program will read in the maximum room capacity and the number of people<br>attending the meeting. If the number of people is less than or equal to the maximum room capacity, the<br>program announces that it is legal to hold the meeting and tells how many additional people may legally<br>attend. If the number of people exceeds the maximum room capacity, the program announces that the<br>meeting cannot be held as planned due to fire regulations and tells how many people must be excluded in<br>order to meet the fire regulations.<br>Sample Output No. 1:<br>Enter the Maximum Room Capacity : 50<br>Enter the No. of People Attending: 45<br>It is legal to hold the meeting.<br>5 additional people my legally attend<br>Sample Output No. 2:<br>Enter the Maximum Room Capacity : 50<br>Enter the No. of People Attending: 55<br>The meeting cannot be held as planned due to fire regulations...<br>5 people must be excluded in order to meet the fire regulations<br>

Extracted text: MACHINE PROBLEM No. 4 Write a program that determines whether a meeting room is in violation of fire law regulations regarding the maximum room capacity. The program 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 regulations and tells how many people must be excluded in order to meet the fire regulations. Sample Output No. 1: Enter the Maximum Room Capacity : 50 Enter the No. of People Attending: 45 It is legal to hold the meeting. 5 additional people my legally attend Sample Output No. 2: Enter the Maximum Room Capacity : 50 Enter the No. of People Attending: 55 The meeting cannot be held as planned due to fire regulations... 5 people must be excluded in order to meet the fire regulations

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here