C++ program that will compute baseball statistics

PLEASE HELP!!

The program will read in the id number, number of wins, number of losses, number of no decisions, total number of games pitched (there are 30 games in total), number of games remaining, winning average (decimal value between 0 and 1 and must have 4 decimal places), and wip total (wins + no decisions - (2*losses) of a pitcher and print the total number of pitchers that have been processed, then stop

It should look like this:
Pitcher 9867
3 wins 12 losses 3 no decisions
Total number of games pitched is 18 12 games still remaining
The winning average is 0.1666
Number of games with no decision is greater than or equal to the number of wins
Number of games with no decision is not greater than number of losses
The wip total is 0

AND THIS IS WHAT I HAVE:


//The program will compute baseball statistics

#include <iostream>
#include <cmath>

using namespace std;

int main()
{
int id, wins, losses, nd, totalgames, gamesremaining, wiptotal, numpits=0;
double winavg;

cout << "Enter pitcher's id: ";
cout << "To stop, enter a negative value as the pitcher's id number> ";
cin >> id;
while (id>=0) {
cout << "Enter number of wins: ";
cin >> wins;
cout << "Enter number of losses: ";
cin >> losses;
cout << "Enter number of no decisions: ";
cin >> nd;
cout << "Enter pitcher's winning average: ";
cin >> winavg;

numpits++;


cout << "Pitcher " << id << endl;
cout << wins << "wins" << losses << "losses" << nd << "no decision" << endl;
}

totalgames=wins + losses + nd;

cout << "Total number of games pitched is: " << totalgames << endl;

gamesremaining=30-totalgames;

if (totalgames==30)
cout << "The pitcher's season is finisheed" << endl;

else
cout << "Print gamesremaining" << endl;

cout << "The number of games remaining is: " << gamesremaining << endl;

return 0;
}

//The program will compute the pitcher's winning average and wiptotal

{
double winavg

cout.setf (ios::fixed, ios::floatfield);
cout.precision (4);

winavg=wins/totalgames;

cout << "Pitcher's winning average is: " << winavg << endl;


if (nd>=wins)
cout << "Number of games with no decision is greater than or equal to number of wins" << endl;

else (nd<losses)
cout <<"Number of games with no decision is not greater than number of losses" << endl;


wiptotal=wins + nd - (2 * losses);

cout << "The wip total is: " << wiptotal << endl;


cout << "We processed " << numpits << "pitchers << endl;"
return 0;
}
Please put your code between code tags <> - http://www.cplusplus.com/articles/jEywvCM9/

We know what it should output. Tell us what it actually outputs. Or are there errors? If so, please provide us with those errors. Also, to make it even better, put the output between output tags, all under "format"
Topic archived. No new replies allowed.