1. In Curses:

  1. What is stdscr?
  2. What is a pad?
  3. How can you write "Hello World" to stdscr?
  4. How can you write "Hello World" to a pad?
  5. How do you get information written to stdscr or to a pad actually to appear on the user's screen?

2. Write a complete program that uses a dispatch table to implement the following algorithm:

NameFunction
"quit"do_exit()
"food"do_eat()
"bed"do_sleep()
"water"do_swim()

3. Relate each of the syntactic elements of a URL to the process of obtaining a document from a World Wide Web server. Include an explanation of how the functions gethostbyname(), connect(), write(), and read() would be used.


Christopher Vickery
Queens College of CUNY