Assignment #4 - 94B

# Assignment #4 - 94B

```> Assignment 4
> ================================================================
>
> T.A.         : Louie Kwan, Room 333 McConnell
> Mail to      : HCA4 on MUSICB  (all other destinations will be IGNORED)
>
>
> ================================================================
> This assignment is for you to learn arrays in Fortran.
> The concepts of arrays, subroutines and functions are expected to use
> in this assignment.
>
> OVERALL REQUIREMENTS :
>
> A table of grades for a number of students for several tests are given.
> You need to compute the average test grade for each student, the average
> grade on each test for all students, the standard deviation on each test
> for all students, the best student on each test ,and the overall average
> for all tests.
>
> INPUT SPECIFICATION :
>
> Your can fix the maximum number of students and the maximum number of
> tests in your program. (i.e. you can fix the size of arrays first)
>
> And then the program will only ask for the actual number of students
> and  the actual number of tests.
>
> e.g.
>
> Enter the number of students  (integer between 1 and 50)
> 5
>
> Enter the number of tests     (integer between 1 and 10)
> 3
>
> Then grades for each student on each test will be read in any order
> that you like.
>
>
> OUTPUT SPECIFICATION :
>
> 1) The output must appears as a table of grades with students listed
>    by rows and tests listed by columns.
>
> 2) The student averages appear to the right of the grades table.
>
> 3) The test averages, best student, and standard deviation
>    appear below the table.
>
>
> e.g.
>
>
>          | Test No.                 Student
>          |
>          |    1      2      3       Averages
> _________|_____________________   ____________
>          |
> S   1    |  50.2   90.0   70.2         ?
> t        |
> u   2    |  60.1    4.0   99.9         ?
> d        |
> e   3    |  70.0   74.0   90.5         ?
> n        |
> t   4    |  60.0   84.0   89.9         ?
>          |
> n   5    |  80.1   74.0   100.0        ?
> o        |
>          |
>
> Test     |
> Averages |    ?      ?       ?
>
>
> Standard |
> Dev.     |    ?      ?       ?
>
> Best     |
> Student  |    5      1       5
>
> The overall average of all test is ??
> (i.e. the average of all test averages)
>
>
> You must test your program using at least the above example data
> and one more data set.
>
> Make sure that your program is properly structured and commented.
> You can use subroutines, or functions if you like. Nice structured
> output is expected.
>
> Remember E-Mail your Fortran source file and the program output to HCA4
> ================================================================
>
> Notes :
>
> The standard deviation of a group of N measurements is given by the formula
>
> SQRROOT (SUMOFSQUARES / N - SQR (MEAN))
>
> where MEAN is their mean and SUMOFSQUARES is the sum of their squares.
>
> If you are not sure about the above formula, check with any
> mathematics book.
+------------------------------```