Question: Pls help me to solve this problem by C++. thank you! Description 1 N Please design a program that will repeatedly ask users to input
Pls help me to solve this problem by C++. thank you!


Description 1 N Please design a program that will repeatedly ask users to input a set of data, until the first number in the set of data is not positive. The format of a set of data is listed as follows: N dd,... N denotes the number of integers inputted in the set of data, and d, represents the i-th integer When given a set of data, please output the minimum, maximum, mean, and variance (Var) of the inputted integers, where the mean and variance are assumed to be integers, that is, their fractional parts are unconditionally discarded. 1 Var(X) (z - )? . n n 1 = Xi - = n i=1 Example Result: 0948 1 13 6 20 Input: 10 0 1 2 3 4 5 6 7 8 9 5 5 1 3 10 13 0
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
