Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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!

image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Inductive Databases And Constraint Based Data Mining

Authors: Saso Dzeroski ,Bart Goethals ,Pance Panov

2010th Edition

1489982175, 978-1489982179

More Books

Students also viewed these Databases questions

Question

Question Can a Roth IRA invest in stock of the IRA owners business?

Answered: 1 week ago