Question: *PLEASE USE C++ TO SOLVE THIS, NOT JAVA OR ANY OTHER LANGUAGE* 2. Write a program that reads in ten whole numbers and outputs the
*PLEASE USE C++ TO SOLVE THIS, NOT JAVA OR ANY OTHER LANGUAGE*
2. Write a program that reads in ten whole numbers and outputs the sum and average of all the numbers greater than or equal to zero (i.e. all positive numbers or 0) Note, if no positive numbers or zeros are entered, your program should print a message that average of positive numbers could not be computed. the sum and average of all the numbers less than zero (which will be negative only) Note, if no negative numbers are entered, your program should print a message that average of negative numbers could not be computed the sum and average of all numbers, i.e. including negative, positive or zero. The user enters the ten numbers just once each and the user can enter them in any order (i.e. a mix of positive and negative numbers, or zero). Your program should NOT ask the user to enter the positive and negative numbers separately Also, use a do while loop to make your program interactive so that it allows users to run the program as often as the user wishes. See Sample Run below on the next page
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
