Question: 3 . 2 raiseMyGrade Function Name: raiseMyGrade Input: ( double ) Score on Test 1 ( double ) Score on Test 2 ( double )

3.2 raiseMyGrade
Function Name: raiseMyGrade
Input:
(double) Score on Test1
(double) Score on Test2
(double) Score on Test3
Output:
(double) The score needed on Test 4 to have an 90 average
(logical) Logical value indicating if the score can be a 90 if the maximum for Test 4 is a 100
Description:
Write a function called raiseMyGrade that takes in 3 test scores and calculates the score needed on Test 4 to have an overall average of 90. Additionally, output a logical value indicating if, given that the maximum value for Test 4 is a 100, an overall average of 90 is possible.
Examples:
score 1,log1 raiseMyGrade (100,80,90)
score 1=90
log1= true
[score2,log2 raiseMyGrade (80,90,95)
score 2=95
log2= true
[score 3,log3 raiseMyGrade (80,85,80)
score 3=115
log3= false
 3.2 raiseMyGrade Function Name: raiseMyGrade Input: (double) Score on Test1 (double)

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!