To do this, you will need access to the files for the roman number program. Instead of everyone in the class copying my files to each of your directory, you will share my files using a symbolic link. To do this, first, copy the makefile from ~ee160/Code.lect/Roman to your Lab8 directory. Then run the command:
make links
a a and this is a long lineOne of the things you will notice about this program is that it is not documented with comments for the algorithm or for the functions. Your first task is to document this code. Copy the program into myreadcmd.c, and extend this file to ignores leading tabs as well as leading blanks (or any combinations of blanks and tabs). Now extend the program to have either a semi-colon or a newline character indicate the end of a command. Here's a sample run:
a ; b The command is: a The command is: b a The command is: aNow extend the program to verify that the command is an upper or lower case letter. It should print an error message if it isn't. Also, verify that the line has a command: if it hits a blank or ; without an intervening command, you should print an error. Here's a sample run:
a ; b The command is: a The command is: b + Error: + is not a letter. / Error: / is not a letter. Error: missing command. ; b Error: missing command. The command is: b
grade -lab8s1,ee160 *.c *.hIf you are in Section 002 use:
grade -lab8s2,ee160 *.c *.hIf you are in Section 003 use:
grade -lab8s3,ee160 *.c *.hIf you are in Section 004 use:
grade -lab8s4,ee160 *.c *.hNOTE: 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 -lab8s1,ee160 OR grade -lab8s2,ee160 OR grade -lab8s3,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.