Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1 ) Prompt the user for three integers and three floats. Call them: int 1 , int 2 , int 3 , and float 1
Prompt the user for three integers and three floats. Call them: int int int and
float float float
There is a function called largestfirst second, third that takes three numbers
and finds and returns the largest of the three numbers.
a Call largest using the integers and and display the result largest number
to the screen. You can call the function with largest
b Call largest using int int int and display the largest to the screen.
c Call largest using float float float and display the largest to the
screen.
There is a function called averagethreefirst second, third that takes three
numbers and returns their average.
a Call the function with the values and and display the result to
the screen.
b Use averagethree to find the average of int int int and display
the result. Round to the nearest tenth.
c Use averagethree to find the average of float float and display the
largest to the screen. Round to the nearest hundreth.
There is a function called mysteryfn in the template file and your PA version HINT: Use
all integers!
a Call mysteryfn using int int int as arguments in this order and
display the results.
b Call mysteryfn using int int int as arguments in this order and
display the results.
c Call mysteryfn using int as all three arguments and display the results.
Test the oddoreven function with each integer value given by the user int int
and int and display the results to the screen.
Lastly, determine if the results of mysteryfn that you got in part are odd or even.
Your output looks like:
What is the first integer?
What is the second integer?
What is the third integer?
What is the first float?
What is the second float?
What is the third float?
Largest is:
Largest is:
Largest is:
The average is:
The average is:
The average is:
The mystery result is:
The mystery result is:
The mystery result is:
is even
is odd
is even
First result is even
Second result is odd
Third result is even
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