Answered step by step
Verified Expert Solution
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++
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.50Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started