Courses

222230281371

COSC 222 -- Java Programming

Syllabus
Grades

Announcements

Schedule for remainder of the year:

  • Nov 19: JSP/beans
  • Nov 21: JSP/beans
  • Nov 24: AJAX/JSF
  • Dec 1: AJAX/JSF
  • Dec 3: course evaluations
  • Dec 5: exam review

MS Paint style program is due on Sunday November 2, 2008 by midnight.

Test 2 is on Wednesday October 1, 2008


Class Notes


In Class Examples

Person
Employee
Hourly Employee
Commission Employee
Base Salary Employee
Payable Interface
Inheritance/Polymorphism test class
Threaded Ball class
Ball Frame class
Ball application
Books Database
Database Program

Assignments

For the next assignment I want a web-based application that allows a user to type in a query and returns the results in a nice readable format to the user. Use the books database like from the last assignment.
Requirements:

  • You must use servlets
  • Your web interface must be easy to use
Submission:
  • servlet code (.java)
  • your start page (.html)
  • your application descriptor (web.xml)
Send these files through email by Dec. 1, 2008.

Create a simple, GUI-based query application for the books database. Your application should allow the user to type in a query (a text entry box) and show the results in a table format (ResultSetTableModel class from book).

Due by midnight on November 14, 2008.

Write a simple "MS Paint" type program that allows a user to create simple drawings on a canvas (JPanel). Check out page 575 for an example of the way to create drawings in this way. Your program needs to allow the user to choose multiple colors and change the size of the "brush" stroke. Also include a mechanism for clearing the window to start over. Due Sunday November 2, 2008.

Sketch Class
Paint Panel Class
Test Class

Implement the Card and DeckOfCards classes from Chapter 7; then do exercises 7.30 and 7.31 on page 360. Send me your Card, DeckOfCards, and Application classes through email by 5:00 pm on Friday October 3, 2008.

Create a simple calculator that accepts an infix expression (i.e. A + B) and calculates the answer. Your program will then display the entered expression and the result. Due September 5, 2008; by 5:00 pm.

Site HelpTerms of Use/Privacy Statementwebmaster@uvawise.edu
Copyright © The University of Virginia's College at Wise. All Rights Reserved
One College Avenue • Wise, Virginia 24293 • 888-282-9324 • info@uvawise.edu