# SI204 Practice Final Practicum

Problem 1
Write a program that reads in numbers from the user and returns the average and standard deviations of the values entered. You may not make any assumptions concerning the number of values entered, so you MUST USE A LINKED LIST to store the values in. You may not use an array. Here is sample output:

 ```Enter numbers terminated by a ';' : 11 25 6 14 32 12 14 18 2 13 12 12 22 ; Average is 14.8462 Standard deviation is 7.88296``` ```Enter numbers terminated by a ';' : 3 3 5 5 ; Average is 4 Standard deviation is 1.1547```

Recall that the standard deviation for numbers `x1,x2,...,xn` whose average is `ave` is

```      ______________________
/ -- n
/  \     (xi - ave)^2
/    |    ------------
/    /        n - 1
\/     -- i = 1```

SOLUTION
Problem 2
Write a program that reads in a data file of student first names, last names and quiz scores. Print out the students from highest grade to lowest, where within a group with the same quiz grade, students are printed out alphabetically. The data file will start by stating how many students there are, as per the example below. Your program must work for any data file in this format, regardless of how many entries!

 `final2data.txt` program run ```10 students Jeff Jones 9 Anne Aimes 7 Steve Smith 10 Helen Huber 8 Arthur Adams 8 Zeke Zook 9 George Gomez 10 Tom Tate 7 Donna Doyle 8 Ed Error 7``` ```Enter file name: final2data.txt George Gomez 10 Steve Smith 10 Jeff Jones 9 Zeke Zook 9 Arthur Adams 8 Donna Doyle 8 Helen Huber 8 Anne Aimes 7 Ed Error 7 Tom Tate 7```

SOLUTION

Christopher W Brown