Use a terminal session to:
- Write a sequence of commands to copy
/home/graph/geoff/CSC322/Ticker.c
to the current directory then compile it with all warnings and
output the executable to Ticker.
(You may wish to fix Ticker.c so that there are no
warnings.) (0.25%)
Answer
cp ../Ticker.c . ; gcc -Wall Ticker.c -o Ticker
- Use vi or emacs to type in the
FahrCelciusWhile.c program.
Compile it and run it. Submit the source code, and the output
from the run in a file named FahrCelciusWhile.out. (0.25%)
Answer
> vi FahrCelciusWhile.c
> gcc -Wall FahrCelciusWhile.c -o FahrCelciusWhile
> FahrCelciusWhile > FahrCelciusWhile.out
> cat FahrCelciusWhile.out
0 -17.8
20 -6.7
40 4.4
60 15.6
80 26.7
100 37.8
120 48.9
140 60.0
160 71.1
180 82.2
200 93.3
220 104.4
240 115.6
260 126.7
280 137.8
300 148.9