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 zyBooks catalog Help

zyBooks My library > CIS 116: Introduction to Computer Programming home >2.4: Floating-point
zyBooks catalog
Help/FAQ
Alicia Quintero
View your last submission
Feedback?
CHALLENGE
ACTIVITY
2.4.2: Numeric types: Floating-point.
5219263925426.932087
Jump to level 1
The mean of two numbers, num 1 and num 2, is given by mean_of_two ))/(2.0(um2. Read num 1 and num 2 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
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_2

Step: 3

blur-text-image_3

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

Students also viewed these Databases questions

Question

How would we like to see ourselves?

Answered: 1 week ago

Question

How can we visually describe our goals?

Answered: 1 week ago

Question

What metaphors might describe how we work together?

Answered: 1 week ago