Your program should do the following:
Name the source code file: proj7.c
submit cs104-0101 lab7 proj7.c
(for more help on the submit mechanism take a look at http://www.gl.umbc.edu/submit)
Please follow all this instructions and make sure that you have met
them before submitting. Don't send a copy to me. You will lose points if
you don't follow the
instructions.
-- For taking input from an input file use UNIX redirection.
-- Create a file that contains all the grades. Then compile your
code. Run the following command 'a.out < grade_filename'.
-- Don't put printf's in the code that prompt the user for input
because it is coming from a file. Only print a table similar to the example
output.
-- While you are writing your program, you could ask for data from
the keyboard. But, the final version of your program should not ask the
user for data.
-- You should remove any statements that ask the user for data so
that they are not printed to the screen by your final version.
-- Use the input file similar to the one shown below. This is
the input file for the sample output.
-- The first line gives the number of students in the class (4 in
this case). Next comes the SSN for the first student (1023) followed by
his 10 grades.
-- Then the SSN (4532) for the next student and his grades and so
on for all the students.
-- The output should not print the scores for all the 20 students
but only for the number of students specified in the input file.
Input file for the Example Output
4
1023
90
93
45
78
100
89
95
50
90
92
4532
67
65
89
89
90
34
0
0
24
32
7542
98
80
99
95
94
89
100
100
96
92
8532
56
67
87
84
100
100
89
43
67
87
/* ** Filename: proj7.c ** Name: Your name ** SSAN: Last four digits of your SSN ** Date: Date of submission ** Course: CMSC-104 Section XXX ** Description: (Your psuedocode goes here. Must be detailed) ** Notes: (As needed, such as how to compile) */
You will lose points if you don't follow the
instructions for the Header Comment Block.