1. Click here to get Solution on ProgAnswer.com
Methods Of arrays class
Enhance the TestStudent.cs program by adding the following methods.
a) The formula for the standard deviation is:
Where x represents each entry or observation, is the mean, and n is the number ofobservations.
Create a method called calcStand() that calculates the standard deviation of the test scores
of a given student.
b) The median of a data set is the value that is in the exact middle when the entries are sorted in
ascending order and there is an odd number of entries. It is the average of the two middle entries if there
is an even number of entries.
Create a method called calcMedian() that returns the median of a set of numbers.
c) The program should print out the following expanded report for each student.
Student Name ID Age Average Test Score Std
Deviation Median
--------------------- ---------- ----- -------------------------- --------------
------ -----------
XXXXX XXXXXXX 999999 99 99.9
9.99 99.9
XXXXX XXXXXXX 999999 99 99.9 9.99
99.9
XXXXX XXXXXXX 999999 99 99.9
9.99 99.9
XXXXX XXXXXXX 999999 99 99.9
9.99 99.9
….. ….. ……
………. …….
XXXXX XXXXXXX 999999 99 99.9
9.99 99.9