Download A1: Analysis of the Problem
Transcript
Suchana Costa
Calendar Database
C1: Code & Good Programming Style
AvtivityNode.java
/*
File Name: ActivityNode.java
Author: Suchana Costa
Date: February 2, 2010
School: Washington-Lee High School
Computer Used: Dell Optiplex GX620
IDE: GEdit
Purpose: Creates the Activity Node
*/
//ActivityNode Class
public class ActivityNode
{
public Activity myActivity = null;
public ActivityNode next = null;
// default constructor
public void ActivitytNode()
{
}
}
______________________________________
Activity.java
/*
File Name: Activity.java
Author: Suchana Costa
Date: February 2, 2010
School: Washington-Lee High School
Computer Used: Dell Optiplex GX620
IDE: GEdit
Purpose: Defines basic attributes for activity class
*/
public class Activity
{
//attributes
private String name = "";
private int month = 1;
private int date = 1;
private int startTimeh = 0;
private int startTimem = 0;
private String location = "";
private String notes = "";
21