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.
  1. 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)
    1. 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.
    2. 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.
    3. Write a csh script that does the same as the script in (a), only the output is sent to /dev/null.

Turnin Instructions

  1. 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.
  2. Bring a hard copy to class on Wednesday, 1/15.