i am writing a program to rate sat scores. i have a function called classify it
ID: 3641000 • Letter: I
Question
i am writing a program to rate sat scores. i have a function called classify it receives 3 interger parameters and determines if the scores are valid (which i have) this function calls a function findtotalscore which receives three integer parameters and sums them up(which i have). now,classify calls a third function called ratethegroup(which i need) which receives 4 parameters the three integer values plus the total of them.the function will determine the group status as follows :
if total score is 2100 or above and the score on each value is 700 or above it reads "outstanding"
if total score is 2100 or above and the score on exactly two of the individual scores is 700 or above it reads "very good"
if total score is 2100 or above and one score is 700 or above it reads "lop-sided"
if total score is less than2100 and no score is 500 the status is "weak" how do i write this function ratethegroup in c++?
Answer(s):
rapunzel1 day ago
Rating:
LifeSaver
Anonymous says:
“thanks!!”
Edit Rating
Oracle
1318439
Karma Pts
Bookmark
RE: function problem
Answer Details
please rate - thanks
#include <iostream>
using namespace std;
void classify(int,int,int);
void rateonescore(int);
int main()
{int s1,s2,s3;
cout<<"Enter 3 SAT scores: ";
cout<<"enter 1st score: ";
cin>>s1;
cout<<"Enter 2nd score: ";
cin>>s2;
cout<<"Enter 3rd score: ";
c...
Share:
by email
on facebook
on twitter
flag response for abuse
Full Answer
Comments (0)
i am writing a program to use sat scores. i have a function called classify it receives 3 interger parameters this function will now call a function named rateonescore.using this function ratesonescore,classify will rate each of the three scores one at a time there will be 3 calls to this function ,one for each score. ratesonescore will receive one parameter representing a sat score the function will determine which category the score is in less than 500 exactly 500 or above 500 how do i write these functions? in c++
Share:
by email
on facebook
on twitter
flag question for abuse
Comments (0)
350
Karma Points Awarded
Answered
Answer(s):
rapunzel1 day ago
Rating:
LifeSaver
Anonymous says:
“thanks!!”
Edit Rating
Oracle
1318439
Karma Pts
Bookmark
RE: function problem
Answer Details
please rate - thanks
#include <iostream>
using namespace std;
void classify(int,int,int);
void rateonescore(int);
int main()
{int s1,s2,s3;
cout<<"Enter 3 SAT scores: ";
cout<<"enter 1st score: ";
cin>>s1;
cout<<"Enter 2nd score: ";
cin>>s2;
cout<<"Enter 3rd score: ";
c...
Share:
by email
on facebook
on twitter
flag response for abuse
Full Answer
Comments (0)
Explanation / Answer
Ok so you need a function like this: void ratethegroup(int total, int score1, int score2, int score3){ if(total > 2100){ if(score1 > 700){ if(score2 > 700 && score2 > 700){ cout 700 || score3 > 700){ coutRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.