Question: Write a C++ program that performs the following steps: a. Declare a named constant called SENTINEL=-9999. b. Outputs the minimum value. c. Outputs the Maximum
Write a C++ program that performs the following steps: a. Declare a named constant called SENTINEL=-9999. b. Outputs the minimum value. c. Outputs the Maximum value. d. Sum of all even numbers, total number of even and product of even numbers. e. Sum of all odd numbers, total number of even and product of even numbers. Read all the values from an external text file called Q4In.txt and output your results to an external text file called yourLastName.txt. Assume the values in the Q4In.txt file as follows: 45 6 77 -99 43 56 22 -832 94 33 -123 6 786 332 532 11 25 33 24 66 12 33 13 3 4 6 24 25 26 29 -9999 (Note: Use a sentinel controlled loop).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
