Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

Students also viewed these Databases questions

Question

Is this practice ethical? Discuss.

Answered: 1 week ago