Computer Science 324 |
ls cd cp mv rm mkdir pwd man chmod cat more grep head tail ln find rmdir wc diff tar
Identify the function of and experiment with these Emacs Commands:
C-x C-s C-x C-c C-x C-f C-x C-w C-g C-a C-e C-d C-_ C-v M-v C-s C-r M-%
Learn these commands - you will use them often. Hints can be found in the Unix and Emacs web pages on the course website.
The main part of the lab is to write two C programs. Approach these problems as best you can as a computer scientist. If you're having trouble, ask questions! Make sure that your code is well written and documented. I encourage you, will not require you, to develop them using Unix. You are, however, required to make sure your programs run properly on the CS Lab Linux systems in Clapp 202.
Write a C program access.c that reads in a five digit access code as a decimal number that writes out each of the five digit access codes that are equivalent (there are 32). Make sure that you print any leading zeros. Again, your program may prompt for the input value or accept it on the command line. You may assume that the value on the input is an integer.
Submit your programs as attachments via electronic mail to jteresco AT mtholyoke.edu.
Your programs will be graded based on correctness, documentation, structure, and performance.