Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with finishing C++ PG. #include using namespace std; int main() { int maxCapacity, numAttending; int numExcluded, numCanAdd; cout //Calculate and output - your

Need help with finishing C++ PG.

image text in transcribed

#include using namespace std;

int main() {

int maxCapacity, numAttending; int numExcluded, numCanAdd;

cout

//Calculate and output - your code here

cout

}

A program is required to determine 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 a planned 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 I have started this program and uploaded this main.cpp outline to Canvas as Task 5. Or simply enter this outline //Meeting Room test in-class assignment STARTER CODE //NAME: //NAME: #include using namespace std; int main() int maxCapacity, numAttending; int numExcluded, numCanAdd cout Case #2-The number of people is the same as the max capacity maxCapacity numAttending Case #3-The number of people is more than the max capacity maxcapacity numAttending

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

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

friendliness and sincerity;

Answered: 1 week ago