CS 50 Homework 4 (Section 1 Prof. Brown)
Due by class time Tuesday, February 19
- Programming Exercise P4.2 (page 178). Name your applet and the
corresponding HTML file "Names". Files to submit: Names.java,
Names.html
- Programming Exercises P4.8 and P4.17 (pages 179, 181).
Name your applet and HTML files "DrawHouses", and your House class definition
"House.java". Files to submit: House.java, DrawHouses.java,
DrawHouses.html
- Programming Exercise P4.13 (page 180). Name your applet and HTML
files "Olympics". Files to submit: Olympics.java,
Olympics.html
- Programming Exercise P4.14 (page 181). Name your applet and HTML
files "Clock". For this exercise, use the JOptionPane class to
create a dialog box that reads input from the user. You are not allowed to
use the ConsoleReader class for this problem. Files to submit:
Clock.java, Clock.html
- Using whatever graphical shapes, colors, or fonts you like, create an
applet that expresses your own personal artistic spirit. Your composition
can be abstract or representational, whimsical or serious, flashy or subdued,
and is completely up to you to design. Let those creative juices flow! Feel
free to experiment with other graphics classes or methods of the Java 2 API
if you like. Call your applet and HTML files "Opus". Files to submit:
Opus.java, Opus.html
Turning in Your Homework
To turn in your homework, put the specified files into a single folder
named Your Name HW 4 and drop this folder into the drop box.
If you are an off-campus student, you may copy your folder to a CLEAN floppy
disk (one containing no other files or folders), and hand this in at the
beginning of class, instead of using the drop box.