C++CODE ONLY: Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
C++CODE ONLY: Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of
C++CODE ONLY: Write a program that takes as input five numbers and outputs the mean (average) and standard deviation of the numbers. If the numbers are X1, X2, X3, X4, and x5, then the mean is X = (X1 + X2 + x3 + x4 + X5 )/5 and the standard deviation is: (x₂ −x) ³+ (x,₂¬x) ³+ (x₂ −x)²+(x¸−x)²+(x¸−x)² S= Your program must contain at least the following functions: 1. a function that calculates and returns the mean; and, 2. a function that calculates the print standard deviation. Input 1.5 integers Output Enter five numbers: 7 7 8 9 11 The mean is 8.40. The standard deviation is 1.497. //TAKE NOTE OF THE STANDARD DEVIATION
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!