Question: Exercise 5: Program exercise for value-returning function Write a complete Python program including minimal comments (file name, your name, and problem description) that solves the

Exercise 5: Program exercise for value-returning function

Write a complete Python program including minimal comments (file name, your name, and problem description) that solves the following problem with the main function:

Problem Specification:

Write a program described below:

Write the definition of a function maximum that has three parameters and returns the largest.

Write the definition of a function minimum that has three parameters and returns the smallest.

Write the definition of a function average3 that has three parameters and returns the average of the three values.

In main function, read three integer values which can be positive or negative, store them into variables.

Call all three functions and print the results with appropriate messages.

Use the format function to show the average in 1 decimal place for the fractional part

Exercise 5: Program exercise for value-returning function Write a complete Python program

Exercise 5: Program exercise for value-returning function Write a complete Python program including minimal comments (file name, your name, and problem description) that solves the following problem with the main function: Problem Specification: Write a program described below: 1. Write the definition of a function maximum that has three parameters and returns the largest. 2. Write the definition of a function minimum that has three parameters and returns the smallest. 3. Write the definition of a function average3 that has three parameters and returns the average of the three values. 4. In main function, read three integer values which can be postive or negative, store them into variables. 5. Call all three functions and print the results with appropriate messages. 6. Use the format function to show the average in 1 decimal place for the fractional part SAMPLE RUN #1: Enter an integer value: 3 Enter an integer value: 4 Enter an integer value: 1 maximum of 3 4 1134 minimum of 3 4 1 is 1 average of 3 4 1 is 2.7 SAMPLE RUN #2: Enter an integer value: 5 Enter an integer value: 0 Enter an integer value: 6 maximum of 5 0-6 is 5 minimum of 5 0 -6 is-6 average of 5 0 -6 is -0.3 SAMPLE RUN #3: Enter an integer value: 1 Enter an integer value: 2 Enter an integer value: 3 maximum of 1 2 3 is 3 minimum of 1 2 3 is 1 average of 1 2 3 is 2.0 SAMPLE RUN #4: Enter an integer value: -2 Enter an integer value: -5 Enter an integer value: 1 maximum of -2-5-1 is -1 minimum of-2-5 -1 is -5 average of -2-5 -1 is -2.7

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!