INFO 344

Course assignments, links and grading

Recommended textbooks:
  • Jonathan Knudsen. Java 2D Graphics.
  • Elliotte Rusty Harold. Java Network Programming.
Recommended background reading:
  • Patrick Henry Winston, Sundar Narasimhan. On to Java.
  • Ivor Horton. Beginning Java 2.
Online Java documentation:

Course assignments

  • Successful completion of all homework.

    20%     Whether it's an application or an applet, link each homework to your personal web page for this course. For an application, link to a page showing your code. For an applet, link both to the applet (which runs of course!) and to a page showing your code.

  • Create sticky content for a Web site: either the Smiley face applet or the Christina Aguilera applet.

    30%    Finish the Smiley applet, or write the Christina applet. Put it on your Web page for this course. Provide a link to the applet and to the various source code files.

  • Turn this Java application into an applet.


  • 10%    Here are the two files: The Application Frame helper file and the Paint Gradient file. Transform these as an Java 2D applet and mount it on your Web page for this course. Transform it so that the gradient changes direction and changes color (i.e., put these changes in a thread).


  • Create a Web-based content index (i.e., a Web "browser"?) for the American Flower Society's Web pages. [In this context, Web-based content index means that you can point your browser at an URL. At that URL you will find a text input box (or perhaps a select widget). You type in a flower name or some generic term like "leaf" or "petal" or "red" and the index then presents you with a list of Web pages containing this term.]

    40%    Code for the following elements should be linked to your Web page.
    • Program(s) that visit the Web pages of Kim's flower garden and download page content.
    • Program(s) that parse Web page content with a tokenizer that tosses out stopwords. You decide what stopwords to ignore.
    • Program(s) that load Web page content into a database.
    • Program(s) that present content to users.

Last class day: Thursday, March 14, 2002

Everyone is invited to show off something...your Smiley Face applet, your Christina applet or your Flower web tool.

Homework

  • One: Write an application that creates a series of objects. Each object is constructed with a first name and second name. Each object checks if its first name is "Betty." If it is "Betty" then the object prints out the message "My name is Betty," else it prints out the first name. The object also prints out the last name and calculates the length of the last name.
  • Two: Write an application called "registrar" that creates two "enrollees." The first enrollee is a default that has no name, age or sport. When it is created, this enrollee prints out its name as "Unknown student." The second enrollee is created with the name "Bilbo Bobbins," age of 23 and sport of hockey. This enrollee prints out this information. Design enrollee so that it has only one "showData()" method that can handle the printing needs of both enrollees.
  • Three: Write an application that creates two objects: a red object and a blue object. When it is created the red object, prints out "Hello from Mr. Red." The red object then calls a getter from the blue object that returns the string: "Hello from Mr. Blue."
  •  

     

  • Four: Design an applet that looks like this: Place your source code (i.e., "myApplet.java") in a file so that I can view it.


  • Five:Transform the three figure applet into a Java2D Graphics applet that looks like this. Place your source code in a file so I can view it.


  • Six: Re-engineer this applet with ActionListener interface.


  •  

     

  • Seven:Make the ball bounce off Mr. Smiley, as well as the wall, and when it does, Mr. Smiley says "Ouch!"



  •     
  • Eight: Re-engineer this applet so that these cute blue cars move back and forth, stop and start.



  • Nine: A clipping that bounces around randomly.


  • Homework Ten: Write a program that opens URL file and reads the URLs into a vector. Then for each URL in the vector, it downloads a Web page and writes the contents into a separate file.


  • Homework Eleven Re-engineer the output so that it looks like the source code for the HTML page.


  • Homework Twelve Re-engineer the output so that the Applet data are formatted like a table.


  • Homework Thirteen Create a SQL database and a ASP page that dumps the contents.

 

 

Student pages