Self-Test Questions


Suggested Projects

  1. Computer Simulator Revisited:   Redesign and implement the computer simulator project originally presented in chapter 8, suggested project #3. Add the capability to store programs to a file and load programs from a file.

  2. Robot Rat Revisited:   Redesign and implement the Robot Rat program presented in chapter 3. Add the capability to capture the robot rat’s movement history to a file and replay the movements stored in a file.

  3. Aircraft Engine Simulation Revisited:   Redesign and implement the aircraft engine simulation presented in chapter 11. Add the capability to store various engine configurations in a file and create engines based upon those engine configuration files.

  4. Tanker Fuel-Oil Pumping System Revisited:   Redesign and implement the tanker pumping system originally presented in chapter 11, suggested project #6. Add the capability to script the filling or draining of tanks. Scripts should be saved to a file for later use.

  5. FileListener:   Write a program that listens for I/O events on a file. Your program might consist of a user-defined interface named FileIOListener. A class that is capable of responding to file I/O events would implement the FileIOListener interface. Study the aircraft engine simulation presented in chapter 11 for ideas on how to implement custom event processing.

    Hint: You might proceed by extending one of the java.io classes presented in this chapter and giving it the capability to maintain a list of FileIOListeners.

  6. Encryption:   You and a friend would like to send secret messages to each other. Write a program that reads a text file and encrypts its contents and saves it to a new encrypted file. Explore the capabilities of the javax.crypto package to help you in this effort.

  7. Manipulating Zip Files:   Write a program that lets you select, with a GUI, a set of files that can be gathered together in a zip file. Use the classes in the java.util.zip package to help you with this effort.

  8. Employee Example Revisited:   Revisit the Employee example used in chapter 11 and add the capability to save and retrieve employee information to and from a file.

  9. Home Inventory Database:   Write a program that lets you document the contents of your home and preserve the items in a file for safe keeping. Give your program a GUI front end and the capability to sort the items by type after entry. Also provide the capability to print the list to a printer.

  10. CD Collection Database:   Write a program that lets you document your CD collection. Your program should save the CD list to a file and load the file for future editing.




Java For Artists(c) The Art, Philosophy, and Science of Object-Oriented Programming
Java For Artists: The Art, Philosophy, And Science Of Object-Oriented Programming
ISBN: 1932504052
EAN: 2147483647
Year: 2007
Pages: 452

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net