Question: how to solve this using c++? CONCEPT: 4.16 The return statement causes a function to end immediately. 4.17 A function may send a value back

how to solve this using c++?

 how to solve this using c++? CONCEPT: 4.16 The return statement

causes a function to end immediately. 4.17 A function may send a

CONCEPT: 4.16 The return statement causes a function to end immediately. 4.17 A function may send a value back to the part of the program that called the function. 4.18 Functions may return true or false values. 13. In Program 4.6, if the value entered for finalscore is 76, which statements are executed in function getGrade () ? What value is returned to function caller, and what did the caller do with it? a. If the value entered for final score is 76, which statements are executed in function calculate Point()? b. In line 20, what value is returned by function excellent (scorePoint), and what did the caller do with it? c. Rewrite function getGrade () such that it uses many return statements. d. Rewrite function calculatePoint() such that it uses only one return statement. WN //Program 4.6 #include using namespace std; 4 char getGrade (int score); float calculate Point (int score); bool excellent (float point); int main() 5 6 7 8 9 10 11 12 13 14 15 16 int final Score; float score Point; char letterGrade; cout > finalScore; letterGrade = your score: "; getGrade (final Score); 81 PROGRAMMING TECHNIQUE / scorePoint = calculatePoint (finalscore); cout = 80) 49 return 4.0; 50 else if (score >= 70) 51 return 3.0; 52 else if (score >= 60) 53 return 2.0; 54 else if (score >= 50) 55 return 1.0; 56 else 57 return 0.0; 58 ) 59 60 bool excellent (float point) 61 62 if (point >= 3.0) 63 return true; 64 else 65 return false; 66 3 char grade; if (score >= 80) grade = 'A'; else if (score >= 70) grade = 'B'; else if (score >= 60) grade = 'C'; else if (score >= 50) grade = 'D'; else grade = 'E'; return grade

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!