|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||
See:
Description
| Interface Summary | |
|---|---|
| IMarks | An interface to model a "spreadsheet" recording student assignment marks. |
| Class Summary | |
|---|---|
| MarksGUI | A graphical user interface to display a "spreadsheet" recording student assignment marks. |
| SampleMarks | A sample class implementing the IMarks interface. |
Provides a graphical user interface (GUI) for a student-written class to maintain assignment marks in a two-dimensional array. The GUI appears like this:
A typical main method to run this program would be
import becker.xtras.marks.*;
public class Main
{
public static void main(String[] args)
{ IMarks marks = new Marks("marks.txt");
MarksGUI gui = new MarksGUI(marks);
}
}
where Marks is written by the student and implements the IMarks interface. In this example, Marks
reads its initial data from the file "marks.txt".
In the code above, Marks may be replaced with
SampleMarks to use a sample
implementation of IMarks. A sample data file may be generated
by writing a main method that uses SampleMarks.
Then use the save function to save the data it loads to a file.
The calculations performed for each assignment appear at the bottom of
the table and are specified by the class implementing IMarks.
Likewise, the calculations performed for each student appear on the
right side of the table and are also specified by the class implementing
IMarks. See the IMarks documentation for
more details.
|
|||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | ||||||||