#include <iostream>
#include <cmath> // Library needed for pi value.
using namespace std;
int main() {
// Program by Mubeen Quadrt, ECGR 2103-002, ICA 4
// Below are variables used for Questions 1 through 3
int numHours;
int studyTime;
int actualStudyTime;
int timeDiff;
double stadiumDim1Feet;
double stadiumDim2Feet;
double circumferenceBall;
double sizeFiveRadius = 11.0; // Initalized Radius value
double numPlayers;
double minutesPlayed;
// Question 1 Below
cout << "How many credit hours are you taking this semester?" << endl; // Output asking question to user to enter how many hours they are taking.
cin >> numHours; // User input for amount of hours you are taking this semester
studyTime = numHours * 3; // Calculation for determining how much time you should spend studying
cout << "Based on the number of hours you are taking you should spend " << studyTime << " hours studying." << endl; // Outputs the amount of a time a user should spend studying
// Question 2 Below
cout << "How many hours do you actually spend studying?" << endl; // Outputs question to user
cin >> actualStudyTime; // User input response to question
timeDiff = studyTime - actualStudyTime; // Calculation for difference between the amount of time you should spend studying time you actually study.
cout << "The difference in the number of hours between the time you should spend studying and do study is " << timeDiff << " hours." << endl; // Output statment for time difference.
// Question 3 Below
stadiumDim1Feet = 105 * 3.28; // Calculation for meters to feet for the first dimension of the stadium
stadiumDim2Feet = 68 * 3.28; // Calculation for meters to feet for the second dimension of the stadium
circumferenceBall = 2 * M_PI * sizeFiveRadius; // Calculation for circumference of size 5 ball, which radius is equal to 11
cout << "The correct circumference for a size 5 ball is " << circumferenceBall << " cm." << endl; // Output for circumference of size 5 ball
cin >> numPlayers; // User input for the number of players.
minutesPlayed = (22 / numPlayers) * 90; // Amount of minutes each player will play if everyone had a chance to play (Field allows for 22 players, games run for 90 minutes which is where my calucation is based off of.)
cout << "If everyone had a chance to play the number of minutes eacher player would play is " << minutesPlayed << " minutes." << endl; // Output statment for the amount of minutes each player will play if everyone had a chance.
return 0;
}