Assignment 8 Wiki - AustinSoup/CS101L GitHub Wiki

Weighted Grades

We're going to work on something that is important to all students, grade weighting. Our program will allow the user to enter 2 types of grades; Tests and Programs. Each of our scores is assumed to be out of 100, so we only need the users score. The tests are 60% of a student's grade, while the assignments are 40%. In order to calculate the final score, we multiply the mean score of the tests by 0.6 and add it to the mean of assignments multiplied by 0.4. When we display scores we will also show them the low, high, mean, and standard deviation of their tests and assignments. The mean is the average. To calculate the mean you would sum all the values and divide by the number of values. If the values we want a mean for are 5, 8, 4, 9 then the mean is mean = (5+8+4+9)/4 In this case our mean is 6.5 The standard deviation is calculated by taking each value and subtracting the mean, and squaring the value. Divide the sum of those values by the numbers of values, and take the square root of that result.

1 2 3

1 2 3 4