how would i make a program that outputs this:
amount of vairiables: 3
3123
1412
2412
mean: 1414
standard viariance: 4344
Joshua_9
0
Newbie Poster
Recommended Answers
Jump to PostOutputting exactly that is an easy exercize - simply execute a number of
std::cout
statements.I think what you mean to ask is how to do the following:
- Read a value (as an integral value)
- Read that many more values (as integral or floating point)
- Compute functions over the set …
Jump to PostThe mean of the numbers 3123, 1412 and 2412 is 2316 (not 1414), and the variance of them is also not what you stated.
Are you using some alternative definition of these terms?
All 8 Replies
Joshua_9
0
Newbie Poster
L7Sqr
227
Practically a Master Poster
Moschops
683
Practically a Master Poster
Featured Poster
Joshua_9
0
Newbie Poster
ddanbe
2,724
Professional Procrastinator
Featured Poster
Joshua_9
0
Newbie Poster
David W
131
Practically a Posting Shark
David W
131
Practically a Posting Shark
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.