Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

- = zyBooks My library > CIS 1 1 6 : Introduction to Computer Programming home > 2 . 4 : Floating - point CHALLENGE

-= zyBooks My library > CIS 116: Introduction to Computer Programming home >2.4: Floating-point
CHALLENGE
ACTIVITY
2.4.2: Numeric types: Floating-point
521926.3925426 cxi3ray?
Jump to level 1
The mean of two numbers, num 1 and num2, is given by mean_of_two ))/(2.0(um2. Read num1 and num2 from input as floats, respectively. Then, compute mean_of_two using the formula. Finally, output 'Mean is ' followed by the value of mean_of_two to five digits after the decimal point.
Ex. If the input is:
8.0
16.0
then the output is:
Mean is 12.00000
1
2 num1= float (input())
3 num2= float (input))
4
5 mean_of_two num 1+ num 2
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions