The purpose of this lab is to give you more experience working with character data and using debug lines to determine where a program is not working and fix it. As usual, you should begin by creating a new directory called Lab9 in your EE160/Labs directory (which you have created in previous labs). All of the program files you write for this lab should be in this Lab9 directory. For the programs in this lab, you may call the files anything you want, but you will need to provide a makefile to compile the program. You can find a skeleton makefile at:
~ee160/Labs/Lab9/makefile
which you can copy to your directory and modify. You will need to complete the target and action lines for all three programs so that they will compile using make (1 Point).
The executables for these programs are called mygrader, mygrader2 and countgrades.
95: A
85: B
80: B
75: C
70: C
68: D
50: F
104: ?
-10: ?
95: A
85: B
80: B
75: C
70: C
68: D
50: F
104: illegal score
-10: illegal score
95: A
85: B
80: B
75: C
70: C
68: D
50: F
104: illegal score
-10: illegal score
90 95 70 60
invalid grading scale
95: A
85: B
80: B
75: C
70: C
68: D
50: F
104: illegal score
-10: illegal score
Passing scores: 5
Failing scores: 2
Illegal scores: 2
abcDFEGH
DdFFEEaA
Grade counts:
A's: 3
B's: 1
C's: 1
D's: 3
F's: 3
Other grades: 5
Use the "grade" command to turn in the all of the source files (.c and .h files) and the makefile in your Lab9 directory. Your command will look like the following.
If you are in Section 001 use:
grade -lab9s1,ee160 *.c *.h makefile
If you are in Section 002 use:
grade -lab9s2,ee160 *.c *.h makefile
If you are in Section 003 use:
grade -lab9s3,ee160 *.c *.h makefile
If you are in Section 004 use:
grade -lab9s4,ee160 *.c *.h makefile
If you are in Section 005 use:
grade -lab9s5,ee160 *.c *.h makefile
NOTE: this command will send in ALL files named with .c and .h extensions in the current directory which are really your files. The grade command will give you a message for files that are links and not submit the files - that is ok, we only want the files which you wrote. You should verify that you turned in things successfully, which you can do with the command (which simply leaves the file names off from the previous command).
grade -lab9s1,ee160
OR
grade -lab9s2,ee160
OR
grade -lab9s3,ee160
OR
grade -lab9s4,ee160
OR
grade -lab9s5,ee160
NOTE: after the files are prepared for grading, you will no longer be able to see your file listing using the above command. NOTE: BE CAREFUL to use the correct form of the grade command given above. If you do not, your files will be sent to the wrong place, and we will not guarantee we will find them for grading.