CSE 326 - Winter 2003
Assignment 0
Assigned: Monday, Jan. 6
Due: Monday, Jan. 13, 23:00
This assignment is designed to help you acquire some familiarity with programming in the Unix environment.
- Write a "Hello world" program in Java on the instructional
Unix machines, i.e. a program which does nothing other than print the
text "Hello world" and terminates. (Sections AA/AB: You may also use C++ for this problem)
-
- Write a csh script that takes a program name as a parameter,
runs the program 10,000 times, and outputs to the screen the real/user/system
time to run the program each time.
- Write a csh script that does the same as the script
in (a), only the program output is sent to a file whose name is given as
a second parameter to the script.
- Write a csh script that does the same as the script
in (a), only the output is sent to /dev/null.
Turnin Instructions
- Email assignement to vass@cs if you're in section Ax or to nilesh@cs if you're in section Bx. Please use header 326hw0:solution, and attach your solutions as opposed to including them in the body.
- Bring a hard copy to class on Wednesday, 1/15.