Question: 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++

Please do it by C++ The following exercise calculate the average of

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!