Ok so this is my prompt for my program and I'm having a bit trouble displaying and computing.
"Read RoomCapacity from the keyboard Read PeopleAttending from the keyboard
If PeopleAttending <= RoomCapacity Then
Display “It is legal to hold the meeting” Compute AdditionalPeople Display AdditionalPeople “ may legally attend”
Else
Display “The meeting cannot be held”
Compute NumberOfPeopleToBeExcluded
Display NumberOfPeopleToBeExcluded “ cannot attend”"
This is the code I have so far... it may not be much but I need help..
Ok, Room capacity is 100. and if it is over 100 (eg. 101) I have to have a code to compute the amount over 100 and for the additional people "may legally attend".
I need assistance with codes to compute additional and excluded people.
the prompt is below.
VVVVVVV
"If PeopleAttending <= RoomCapacity Then
Display “It is legal to hold the meeting” Compute AdditionalPeople Display AdditionalPeople “ may legally attend”
Else
Display “The meeting cannot be held”
Compute NumberOfPeopleToBeExcluded
Display NumberOfPeopleToBeExcluded “ cannot attend”
#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int People_Attending = 0;
int Room_Capacity = 100;