-
-
Save anonymous/c4344a67d179c5e96bea70f5a4d76b32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
#include<cmath> | |
#include<string> | |
using namespace std; | |
int main() | |
{ | |
//Variables for the program++++++++++++++++++++++++++++++++++++++ | |
string EventName, CustomerName; | |
int guestsperserver = 20, GuestNumber; | |
int numberOfServers, EventTime; | |
//User Inputs for the program++++++++++++++++++++++++++++++++++++ | |
cout << "Enter the name of the event: "; | |
getline(cin, EventName); | |
cout << "Enter the customer's first and last name: "; | |
getline(cin, CustomerName); | |
cout << "Enter the number of guests: "; | |
cin >> GuestNumber; | |
cout << "Enter the number of minutes of the event: "; | |
cin >> EventTime; | |
cout << endl << " " << EventName << endl; | |
cout << "Event estimate for " << CustomerName << ":" << endl; | |
//Processing!! Doing the math with code for the user. ++++++++++++++++++++ | |
numberOfServers = ceil(GuestNumber / guestsperserver); | |
cout << "Number of servers: " << numberOfServers; | |
system("pause"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment