This is what I have....
These are my errors.
This is what I need to do.. I need to figure out a way for the final ranking system.(ComputerRankings) to throw out the Max and Min ranking, and keep the 4 median rankings.
Then create the BCS Average, by taking the sum and dividing it by 100.0
Any help on this would be insanely appreciated.:beer:
Code:
#include<iostream>
using namespace std;
int Jeff_Anderson-Chris_Hester_Points, Richard_Billingsley_Points, Wes_Colley_Points, Kenneth_Massey_Points, Jeff_Sagarin_Points, Peter_Wolfe_Points;
double CoachesPoll(int);
double computerRankingsAvg();
double bcs_total, BCS_Average;
int main(){
char ans = 'y';
int harris, coaches;
double bcs_total;
while (ans == 'y'){
bcs_total = 0;
cout<<"Enter Harris Poll Points: ";
cin>>harris;
cout<<"Enter Coaches Poll Points: ";
cin>>coaches;
bcs_total+=HarrisPoll(harris);
bcs_total+=CoachesPoll(coaches);
bcs_total+=computerRankingsAvg();
cout<<"BCS Average: "<<bcs_total/3<<endl;
cout<<"Do you want to calculate another team's BCS average? (y/n)"<<endl;
cin>>ans;
cout<<endl<<endl;
}
return 0;
}
double Harris_Poll(int a){
double answer;
cin>>Harris_Poll_Points;
answer=Harris_Poll_Points/2825.0;
return answer;
}
double Coaches_Poll(int b){
double answer;
cin>>Coaches_Poll_Points;
answer=Coaches_Poll_Points/1550;
return answer;
}
double ComputerRankings (int c){
for (c=0;c<6;c++){
int Jeff_Anderson-Chris_Hester_Points;
cin>>Jeff_Anderson-Chris_Hester_Points;
if(Jeff_Anderson-Chris_Hester_Points >25){
cout<<"You have entered an invalid number";
cout<<"Jeff_Anderson-Chris_Hester_Points";
cin>>Jeff_Anderson-Chris_Hester_Points;
}
else{
cout<<"Jeff_Anderson-Chris_Hester_Points";
cin>>Jeff_Anderson-Chris_Hester_Points;
}
int Richard_Billingsley_Points;
cin>>Richard_Billingsley_Points;
if(Richard_Billingsley_Points>25){
cout<<"You have entered an invalid number";
cout<<"Richard_Billingsley_Points";
cin>>Richard_Billingsley_Points;
}
else {
cout<<"Richard_Billingsley_Points";
cin>>Richard_Billingsley_Points;
}
int Wes_Colley_Points;
cin>>Wes_Colley_Points;
if(Wes_Colley_Points>25){
cout<<"You have entered an invalid number";
cout<<"Wes_Colley_Points";
cin>>Wes_Colley_Points;
}
else {
cout<<"Wes_Colley_Points";
cin>>Wes_Colley_Points;
}
int Kenneth_Massey_Points;
cin>>Kenneth_Massey_Points;
if(Kenneth_Massey_Points>25){
cout<<"You have entered an invalid number";
cout<<"Kenneth_Massey_Points";
cin>>Kenneth_Massey_Points;
}
else {
cout<<"Kenneth_Massey_Points";
cin>>Kenneth_Massey_Points;
}
int Jeff_Sagarin_Points;
cin>>Jeff_Sagarin_Points;
if(Jeff_Sagarin_Points>25){
cout<<"You have entered an invalid number";
cout<<"Jeff_Sagarin_Points";
cin>>Jeff_Sagarin_Points;
}
else {
cout<<"Jeff_Sagarin_Points";
cin>>Jeff_Sagarin_Points;
}
int Peter_Wolfe_Points;
cin>>Peter_Wolfe_Points;
if(Peter_Wolfe_Points>25){
cout<<"You have entered an invalid number";
cout<<"Peter_Wolfe_Points";
cin>>Peter_Wolfe_Points;
}
else {
cout<<"Peter_Wolfe_Points";
cin>>Peter_Wolfe_Points;
}
if (Highest=Jeff_Anderson-Chris_Hester_Points){
cin>>Jeff_Anderson-Chris_Hester_Points;
}
if (Highest=Richard_Billingsley_Points){
cin>>Richard_Billingsley_Points;
}
if (Highest=Wes_Colley_Points){
cin>>Wes_Colley_Points;
}
if (Highest=Kenneth_Massey_Points){
cin>>Kenneth_Massey_Points;
}
if (Highest=Jeff_Sagarin_Points){
cin>>Jeff_Sagarin_Points;
}
if (Highest=Peter_Wolfe_Points){
cin>>Peter_Wolfe_Points;
}
if (Lowest=Jeff_Anderson-Chris_Hester_Points){
cin>>Jeff_Anderson-Chris_Hester_Points;
}
if (Lowest=Richard_Billingsley_Points){
cin>>Richard_Billingsley_Points;
}
if (Lowest=Wes_Colley_Points){
cin>>Wes_Colley_Points;
}
if (Lowest=Kenneth_Massey_Points){
cin>>Kenneth_Massey_Points;
}
if (Lowest=Jeff_Sagarin_Points){
cin>>Jeff_Sagarin_Points;
}
if (Lowest=Peter_Wolfe_Points){
cin>>Peter_Wolfe_Points;
}
bcs_total=Highest-Lowest;
cout<<" BCS_Average";
BCS_Average=Sum/100.0;
cin>>BCS_Average;
Code:
1>------ Build started: Project: arhellman10474862P3, Configuration: Debug Win32 ------
1>Compiling...
1>arhellman10474862P3.cpp
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(3) : error C2143: syntax error : missing ';' before '-'
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(19) : error C3861: 'HarrisPoll': identifier not found
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(31) : error C2065: 'Harris_Poll_Points' : undeclared identifier
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(37) : error C2065: 'Coaches_Poll_Points' : undeclared identifier
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(43) : error C2143: syntax error : missing ';' before '-'
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(43) : error C2065: 'Chris_Hester_Points' : undeclared identifier
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(109) : error C2065: 'Highest' : undeclared identifier
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(127) : error C2065: 'Lowest' : undeclared identifier
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(147) : error C2065: 'Sum' : undeclared identifier
1>l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(150) : fatal error C1075: end of file found before the left brace '{' at 'l:\visual studio 2005\projects\arhellman10474862p3\arhellman10474862p3\arhellman10474862p3.cpp(42)' was matched
1>Build log was saved at "file://l:\Visual Studio 2005\Projects\arhellman10474862P3\arhellman10474862P3\Debug\BuildLog.htm"
1>arhellman10474862P3 - 10 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Then create the BCS Average, by taking the sum and dividing it by 100.0
Any help on this would be insanely appreciated.:beer: