Question: Write a C++ program that takes n positive numbers as input, and find the maximum value, minimum value, and the average value. The value of

Write a C++ program that takes n positive numbers as input, and find the maximum value, minimum value, and the average value. The value of n is given by user.

It should skip the negative numbers. If a negative number is entered, the program should ask for a positive number instead of that. You need to use a dynamic array to save all positive numbers.

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!