Question: 844 ROLL NO Question No. 3: CLO-02 (10) Write a C++ program to implement the following function and also call it from the main function:
844
ROLL NO
Question No. 3: CLO-02 (10) Write a C++ program to implement the following function and also call it from the main function: double SD (double x[], int n); The function returns the standard deviation of a data set of following 11 numbers stored in an array. That array has been initialized in the main function with numbers based on your Registration Number (reg#): reg# reg# reg# reg# reg# reg# reg# reg# reg# reg# reg# 14 - 20 + 16 +16 + 25 + 12 - 23 - 29 - 23 - 29 Example: If your reg# is 712, then: 698 689 692 728 728 712 738 724 689 683 683 Formula to calculate Standard Deviation is where (7) is the mean. S -=D n-1 Note: You can't use any other library other than the iostream and stdlib.h
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
