Project 2

Kevin Nilson

http://www.smccd.net/accounts/nilsonk/

Abstract

CS 381 Project 2, Java Programming I, Fall 06


1. Assignment

Due - Due September 6

Write a simple Java Program that stores the overall grade for a student.

  • Your Java Classes should use the package edu.smccd.cis381.fall2006.project2

  • Your program must be compatible with project2-build.xml

I expect 3 classes for this assignment

  • Student

  • Grade

  • StudentTester

Please review "How to Turn in Assignments" for information about how to submit and other requirements.

2. Description of Classes

Figure 1. UML

UML

Class Diagram for Student and Grade

3. StudentTester

StudentTester should do the following

  1. Create a student with any id, first name, and last name.

  2. Add several assignments to the student.

  3. Create a second student with any id, first name, and last name.

  4. Add several assignments to the second student.

  5. Print to console the name of each student and ther current percent.

4. Notes

  • At this time the grade description is lost information. Maybe at a later time we will enhance that program to store that information.