when i run this program i am not getting an answer for the equations. i dont know how to put the program like everyone else does so im just gonna paste it and point out whats wrong.
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main()
{
int idnumb, wins, losses, ties, totalgames, remaininggames, finalscore, totalteams=0;
double winningaverage;
//the program will print out the statistics for eight football teams
for (idnumb=1; idnumb<=8; idnumb=idnumb+1) {
cout<<"team ";
cin>>idnumb;
cout<<" wins";
cin>>wins;
cout<<" losses";
cin>>losses;
cout<<" ties";
cin>>ties;
cout<<"total number of games played is ";
totalgames=(wins+losses+ties); //isnt giving me an answer
cin>>totalgames;
if (totalgames==16)
cout<<" the season is finished";
else (totalgames<16);
cout<< " the season is not finished"<<endl;
cout<<"the winning average is ";
cin>>winningaverage;
winningaverage=(wins/totalgames); //isnt giving me an answer
cout<<setprecision(4)<<winningaverage<<endl;
if (ties>=wins)
cout<<"the number of games tied is greater than or equal to the number of games won"<<endl;
else
cout<<"the number of games tied is not greater than or equal to the number of games won";
if (ties>losses)
cout<<"the number of games tied is not greater than the number of games lost"<<endl;
else
cout<<"the number of games tied is greater than the number of games lost"<<endl;
cout<<"final team score is";
finalscore=(2*wins+ties-losses); //this is giving me an answer
cin>>finalscore;
cout<<endl;
cout<<"team ";
cin>>idnumb;
}
return 0;
}