There are 2 parts to this HW:
This should bring up an already-existing file for you to edit.
NOTE: Depending on how you choose to print this file, you may need to quit pico, print the file, and then do "pico .cshrc" again.
YOU MUST TYPE THIS IN EXACTLY AS SHOWN! BE SURE ALL SPACES ARE IN THE CORRECT PLACES!
(This will make the Pascal compiler available to you.)
>pc firstcode.p <return>
(What this does is "compile" the Pascal program from p. 10 that you created above. If you made a serious typing mistake, you will get an error message. If so, try to find and fix the error yourself, but DO ask us for help if you need it!)
This should print the title of the course. (Actually, it "executes" your compiled program, which the Pascal compiler decided to call a.out.)
(Note: Do not try to print a.out!!
IF you
really want to see what it looks like, do
>more a.out
You may be asked:
"a.out" may be a binary file. See it anyway?
If so, type y.
Then keep hitting the space bar to see the entire file, until
you see (END). Then type q to quit and get
back to the Unix prompt.)
Here, printer should be one of the Unix printers listed in the document "How to Print from Unix".
Note that there is a greater-than sign (>) in the
middle of the second line; this is not
the Unix prompt -- it is a command to send the output of
a.out to a file that you are calling
firstcode.output.
This sequence of steps will print out firstcode.p,
execute a.out and
put the output in the file firstcode.output, and then print
that file at the printer that you selected.
OR:
Instead of printing firstcode.p & firstcode.output on the Unix printer with the "lpr" command, follow the directions in "How to Print from Unix" for printing it from WindowsNT.
Note: It is probably easiest to do this by hand, using pencil and paper; it is NOT a programming exercise (yet ;-)
Turn in the following items, stapled together in the top left-hand corner::
| DUE: AT THE START OF LECTURE: WED., OCT. 11 |