CS 284 Operating Systems
Programming Assignment #1

Due: 1/19/2001 - Class Time

Write a C program using scanf(....) to read from standard in and printf(....) to write to standard out.

You may use whatever compiler you want but do not use cin or cout

Your program should demonstrate reading and writing an integer, a character, a floating point value, a string of characters and a small array of integers.  Print out each of the values read with appropriate labels.

The input for your program (the numbers and characters) should be stored into a 'data file'.

To run your program type something like the following:
a.out < mydata
=================================================================

You will use the 'script' command to capture all necessary information for handin.  You do that by
 1) starting the script command "script myHandin"
 2) cat your.source.c.program
 3) cat mydata
 4) a.out < mydata
 5) exit

The actual hardcopy should be produced by entering
a2ps myHandin | lpr -P yourPrinterPreference