Question: Write a class called Student that has two data members - a string variable called name and a double variable called score. It should have

Write a class called Student that has two data members - a string variable called name and a double variable called score. It should have a constructor that takes two values and uses them to initialize the data members. It should have get methods for both data members (getName and getAge), but doesn't need any set methods.

Write a separate function (not part of the Person class) called stdDev that takes two parameters - an array of Student and the size of the array - and returns the standard deviation of all the scores(the population standard deviation that uses a denominator of N, not the sample standard deviation, which uses a different denominator). Please do not use pointers or global variabes.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!