Question: Create a C++ program that asks the user to enter up to a maximum of 30 numbers. Inform the user that entering a sentinel value

Create a C++ program that asks the user to enter up to a maximum of 30 numbers. Inform the user that entering a sentinel value of -999 will terminate the data entry phase of the program. The program will store the numbers in an array of doubles and then display the following information:

  • The lowest number in the array. (The number with the smallest value.)
  • The highest number in the array. (The number with the greatest value.)
  • The count of the number of valid entries made by the user. (Do not count entering the sentinel value as a valid entry.)
  • The total of the numbers in the array.
  • The average value of the numbers in the array.

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!