Question
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
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
SAMPLE RUN #1: Enter an integer value: 3 Enter an integer value: 4 Enter an integer value: 1 maximum of 3 4 1 is 4 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started