//test SAT
/*
void initialize (int& verbal, int& writing, int& math)
{
verbal=0;
writing=0;
math=0;
}
void userInitialize (int& verbal, int& writing, int& math)
{
cout<<"Please enter your verbal score (0-800) ";
cin>>verbal;
cout<<endl;
cout<<"Please enter your writing score (0-800)";
cin>>writing;
cout<<endl;
cout<<"Please enter your math score (0-800)";
cin>>math;
cout<<endl;
}
void converts (int verbal, int writing, int math, int& newTest, int& old)
{
newTest = verbal + writing + math; // not right you need to make a ratio not
old = newTest - 800; //this
}
void printResults (int verbal, int writing, int math, int newTest, int old)
{
cout<<"you got a "<<verbal<<" on the new verbal section."<<endl;
cout<<"you got a "<<writing<<"on the new writing section."<<endl;
cout<<"you got a "<<math<<"on the new math section."<<endl;;
cout<<"your total for the new SAT is "<<newTest<<"."<<endl;
cout<<"your total on the old SAT is "<<old<<"."<<endl;
}
int main ()
{
int verbal, writing, math, newTest, old;
initialize (verbal, writing, math);
userInitialize (verbal, writing, math);
converts (verbal, writing, math, newTest, old);
printResults (verbal, writing, math, newTest, old);
return 0;
}
*/
timdog345 -1 Light Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
hammerhead commented: hahaha i almost missed that +2
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.