Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please do it by C++ The following exercise calculate the average of two numbers: Average=2A+B There are two input values: - First number A, an

Please do it by C++

image text in transcribed

The following exercise calculate the average of two numbers: Average=2A+B There are two input values: - First number A, an integer, ranged from -2,147,483,648 to 2,147,483,647, inclusively. - Second number B, an integer, ranged from 2,147,483,648 to 2,147,483,647, inclusively. You have to calculate the average between the two numbers. The output should be rounded to 2 decimal places. The sample output is given as follows. Sample 1 Sample 2 Please input first number: 2147483647 Please input second number: 2147483648 Average: 0.50

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

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

More Books

Students also viewed these Databases questions