Write a program that will enable the user to input a series


Write a program that will enable the user to input a series of non-negative numbers via an input statement. At the end of the input process, the program will display: the number of odd numbers and their average; the number of even numbers and their average; the total number of numbers entered. Enable the input process to stop by entering a negative value. Make sure that the user is advised of this ending condition.

For extra credit(needs to be separate program)

Modify the program so that the user cannot enter more than 20 values, If the user does reach this maximum number of values,  have the program print a warning message to the effect, while modifying the message indicating the number of values entered to read: "You entered the maximum number of values." To help the user know which value he/she is entering, have the current count displayed as part of the input prompt ( for example, "Please enter value #7) Don't forget to somehow warn the user at the input stage that the maximum number of values that can be entered is 20.

using visual studio and c++

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Write a program that will enable the user to input a series
Reference No:- TGS01188425

Expected delivery within 24 Hours