Write a program that computes the average and standard deviation of four scores.
ID: 3615001 • Letter: W
Question
Write a program that computes the average and standard deviation of four scores. The standard deviation is defined as: st_ dev = where a is the average of the four scores, s1, s2,s3, s4. You should have a main ( ) and two functions, both of which are called by main (). The first function should be a call-by-value function that returns the average back to main (). The second function will have 6 parameters and should make use of call-by-reference to pass appropriate value(s) back to main ( ). This second function will also be of type void. Do not forget to create prototypes and appropriate function calls. All parameter names must be unique.Explanation / Answer
please rate - thanks #include #include using namespace std; double mean(double,double,double,double); void standardd(double,double,double,double,double,double&); int main() {double x1,x2,x3,x4,average,sd; coutx1; coutx2; coutx3; coutx4; average=mean(x1,x2,x3,x4); standardd(x1,x2,x3,x4,average,sd); coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.