Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The mean of two numbers, val 1 and val 2 , is given by mean _ of _ two = ( val 1 + val

The mean of two numbers, val1 and val2, is given by mean_of_two =(val1+ val2)/2.0
. Read val1 and val2 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:
22.0
14.0
then the output is:
Mean is 18.00000

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

Students also viewed these Databases questions

Question

How many Tables Will Base HCMSs typically have? Why?

Answered: 1 week ago

Question

What is the process of normalization?

Answered: 1 week ago