Skip to content

Instantly share code, notes, and snippets.

/ff

Created September 18, 2017 22:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/c4344a67d179c5e96bea70f5a4d76b32 to your computer and use it in GitHub Desktop.
Save anonymous/c4344a67d179c5e96bea70f5a4d76b32 to your computer and use it in GitHub Desktop.
#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