SlideShare uma empresa Scribd logo
1 de 2
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
1122020 question

Mais conteúdo relacionado

Destaque

Presentation1
Presentation1Presentation1
Presentation1Chhetri88
 
Hr 036 數位內容產業與人才資源
Hr 036 數位內容產業與人才資源Hr 036 數位內容產業與人才資源
Hr 036 數位內容產業與人才資源handbook
 
THe Most Wonderful Time of the Year
THe Most Wonderful Time of the YearTHe Most Wonderful Time of the Year
THe Most Wonderful Time of the Yearlivinghopechurch
 
Isabella Andreini La Inamorata Dela Commedia Dell Arte
Isabella Andreini   La Inamorata Dela Commedia Dell ArteIsabella Andreini   La Inamorata Dela Commedia Dell Arte
Isabella Andreini La Inamorata Dela Commedia Dell ArteGinaMMartino
 
God's Way of Meeting Our Needs
God's Way of Meeting Our NeedsGod's Way of Meeting Our Needs
God's Way of Meeting Our Needslivinghopechurch
 
Line of best fit slideshare
Line of best fit slideshareLine of best fit slideshare
Line of best fit slideshareTracy Cap
 
포토러스(FotoRus) Pip
포토러스(FotoRus) Pip포토러스(FotoRus) Pip
포토러스(FotoRus) PipLira Park
 
R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)Maintenance Connection
 

Destaque (10)

Presentation1
Presentation1Presentation1
Presentation1
 
relaciones
relacionesrelaciones
relaciones
 
Hr 036 數位內容產業與人才資源
Hr 036 數位內容產業與人才資源Hr 036 數位內容產業與人才資源
Hr 036 數位內容產業與人才資源
 
THe Most Wonderful Time of the Year
THe Most Wonderful Time of the YearTHe Most Wonderful Time of the Year
THe Most Wonderful Time of the Year
 
Isabella Andreini La Inamorata Dela Commedia Dell Arte
Isabella Andreini   La Inamorata Dela Commedia Dell ArteIsabella Andreini   La Inamorata Dela Commedia Dell Arte
Isabella Andreini La Inamorata Dela Commedia Dell Arte
 
God's Way of Meeting Our Needs
God's Way of Meeting Our NeedsGod's Way of Meeting Our Needs
God's Way of Meeting Our Needs
 
Line of best fit slideshare
Line of best fit slideshareLine of best fit slideshare
Line of best fit slideshare
 
포토러스(FotoRus) Pip
포토러스(FotoRus) Pip포토러스(FotoRus) Pip
포토러스(FotoRus) Pip
 
R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)R06 | Intermediate Reporting - Conditional Formatting (MCUI)
R06 | Intermediate Reporting - Conditional Formatting (MCUI)
 
Direccion de proyectos en sectores tecnologicos
Direccion de proyectos en sectores tecnologicosDireccion de proyectos en sectores tecnologicos
Direccion de proyectos en sectores tecnologicos
 

1122020 question

  • 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