Q2. Write a C+ program that prompts the user to enter 3 number (x1,x2,x3) and compute and display the mean (average) and standard deviation(s) of the numbers. The relevant formulas are: • avg=(x1+x2+tx3)/3 (x1-avg)²+(x2-avg)²+(x3-avg)² = S 3 Include 2 functions in your program: 1. Function Average should compute and return the avg. 2. Function Standard_deviation should compute and display it.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 8PP: (Statistical) In many statistical analysis programs, data values considerably outside the range of...
icon
Related questions
Question
Q2. Write a C+ program that prompts the user to enter 3 number (x1,x2,x3) and compute and display the mean (average) and standard deviation(s) of the numbers . The relevant
formulas are:
• avg=(x1+x2+x3)/3
(x1-avg)²+(x2-avg)²+(x3-avg)²
S =
MG_O
Include 2 functions in your program:
1. Function Average should compute and return the
2. Function Standard_deviation should compute and display it.
avg.
Transcribed Image Text:Q2. Write a C+ program that prompts the user to enter 3 number (x1,x2,x3) and compute and display the mean (average) and standard deviation(s) of the numbers . The relevant formulas are: • avg=(x1+x2+x3)/3 (x1-avg)²+(x2-avg)²+(x3-avg)² S = MG_O Include 2 functions in your program: 1. Function Average should compute and return the 2. Function Standard_deviation should compute and display it. avg.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Algebraic Expressions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr