C++ Syntax

C++ Programming Assignment Help, C++ Programming Help, C++ programming Questions

C++ Lab #2 - Chapter #2

Objectives:

Become familiar with C++ syntax.

Become familiar with calculations using C++ programming language.

Become familiar with if statements.

Instructions (10 points) :

Please do the following question below.

Use the following naming convention: [Name]_lab02.cpp

Write a program that determines whether a meeting room is in violation of fire law regulations regarding the maximum room capacity.Obtain from the user:

the maximum room capacity

the number of people to attend the meeting.

If the number of the people is less than or equal to the maximum room capacity

announce that it is legal to hold the meeting

tell how many additional people may legally attend.

If the number of people exceeds the maximum room capacity

announce that the meeting cannot be held as planned due to fire regulations

tell how many people must be excluded to meet the fire regulations.

Sample Output:

Welcome the Fire Marshall Capacity App

Please enter the maximum room capacity: 50

Please enter the number of people to attend the meeting: 45

It is legal to attend the meeting. 5 more people can still attend.

Thank you for using the FMC App. Come Back Soon!

Answer Detail

Get This Answer

Invite Tutor