Question
Design a main( ), oddEven( m1) and findAverage(n1, n2, n3, n4) functions in python. The main( ) prompts the user and receives five integers from
Design a main( ), oddEven( m1) and findAverage(n1, n2, n3, n4) functions in python. The main( ) prompts the user and receives five integers from user and calls other functions as explained below.
The main( ) program is expected to pass the first value to the oddEven(m1 ) function and pass the other 4 values to the findAverage(n1, n2, n3, n4). The oddEven(m1) function is a void functions and simply prints whether the argument sent was odd or even. The findAverage(n1, n2, n3, n4) function a value returning function and returns the average of the four values back to the main to be printed over there. You may also design a forth optional function called findSum( ) to help the findAverage(n1, n2, n3, n4) function to do its job faster
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