CS 243 Homework #5

10/23/06
In your home directory,
 create a subdirectory named: homework5

Part 1:
In your homework5 directory,
 create part1.c, compile, and run part1
  which should do the following:
     run initscr() to clear the screen
     output this title at row 1, col 30
CS 243 homework 5 by xxx
       replace xxx with your 3 char login
     output this prompt at row 5, col 10
data to write:
     output this prompt at row 10, col 10
file pathname:

     Move the cursor to the end of the first prompt
      and get input from the user via getnstr with a limit of 40 chars.
       Once input is done,
     move the cursor to the end of the 2nd prompt
      and get input from the user via getnstr with a limit of 40
      chars.

  Your program should
   write the requested data
    followed by newline
     to the specified file
      in the current directory.
       Create the file if it does not already exist.
        Append to the file if it already exists.

     Then output this msg at row 20, col 10:
Program completed.
      then sleep for 5 seconds.

Hint: see Chapter 6.