Question: Write a function called average _ of _ three that takes in 3 numbers, and returns the average of all three of them ( the

Write a function called average_of_three that takes in 3 numbers, and returns the average of all three of them (the average of a set of numbers is their sum divided by how many there are).
After you've written the function above:In the same file, define another function called average_of_three_special that also takes in three numbers. Based on the average of the three numbers, this function returns a number:
If the average is greater than 100, return 1
Else if the average is greater than or equal 0 and less than or equal to 100, return 0
Else, return -1

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 Programming Questions!