Question: need help writing program in c++ Question 20 30 pts (PH2) Write a complete, compile ready, program that will perform a calculation on three numbers

need help writing program in c++  need help writing program in c++ Question 20 30 pts (PH2)
Write a complete, compile ready, program that will perform a calculation on

Question 20 30 pts (PH2) Write a complete, compile ready, program that will perform a calculation on three numbers read from the user. The values must be greater than or equal to MIN and less than or equal to MAX. All values entered must be bounds checked. The program should print a welcome screen, prompt the user for the values, read in the values, bounds check the values entered, calculate the formula specified and output the answer. If any of the values are out of bounds, an informative message should be output to the user and the program should exit. See examples below for output. Your program must match the output as close as possible Formula xxab/ a-first value read, b-second value read, c-third value read, All data types should be doubles. Bounds Error Checking Examples > dolly Snoopy testis/a.out Welcome to the formula calculator Enter the three values:0 20 50 Value 1-O is out of range dolly@Snoopy test1$ /a.out Welcome to the average calculator Enter the three values: 20 10 30 Value 2: -10 is out of range dolly Snoopy test15/a out Welcome to the formula calculator Enter the three values: 10 20 150 Value 3: 150 is out of range dolly Snoopy test15 Normal Examples dolly@Snoopy:test1$ /a.out Welcome to the formula calculator Enter the three values: 10 20 30 The calculated formula using 10.000. 20.000 and 30.000 is 6.667 dolly@Snoopy:test1$ ./a.out Welcome to the formula calculator Enter the three values to average: 100 59 23.678 The calculated formula using 100.000- 59.000 and 23.678 is 249.176 Blue-output from program Red-user input Pink - calculated value Additional instructions x-abc A defined constant must be used for minValue -1 and maxValue-135 Value calculated is : formula a first value read. b. second value read, c-third value read. Output of the program must match the example as close as possible. Do not include comments No cin fail error testing should be done. Edit View Insert Format Tools Table

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!