~ee160/Labs/Lab9/makefilewhich 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: ?Hint: There are two ways to do this: one using an else-if, the other as a set of simple if statements, each having a return statement in the then-part of the statement.
95: A 85: B 80: B 75: C 70: C 68: D 50: F 104: illegal score -10: illegal scoreHint: Think about where you should put the change; in main() or the function assign_grade().
95: A 85: B 80: B 75: C 70: C 68: D 50: F 104: illegal score -10: illegal scoreHint: It helps to change the assign_grade() function to take the different items of the grading scale as parameters.
90 95 70 60 invalid grading scaleHint: It helps to write a function that determines whether the grading scale is valid.
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: 5None of the counts will seem to be correct. Don't try to fix it in one shot. Before making any changes, put a print statement at the beginning of the loop (before the switch) that prints each character that's read. Also, add one statement for each case in the switch (as well as the default) that prints the value of the counter after it is updated. Again, you will note this program needs documentation. You should comment the code in your file to show the algorithm. This will also help you understand the code, so you can debug it. This output should help explain at least partially why the counters have the wrong values. After you make these fixes, re-run the program to see if it is fixed, and if it is not, try to add more printf's to help you see what's going on. Your task is to fix this program to produce output like the above.
If you are in Section 001 use:
grade -lab9s1,ee160 *.c *.h makefileIf you are in Section 002 use:
grade -lab9s2,ee160 *.c *.h makefileIf you are in Section 003 use:
grade -lab9s3,ee160 *.c *.h makefileIf you are in Section 004 use:
grade -lab9s4,ee160 *.c *.h makefileIf you are in Section 005 use:
grade -lab9s5,ee160 *.c *.h makefileNOTE: 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,ee160NOTE: 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.