Professional Documents
Culture Documents
Java Assignment 1
Java Assignment 1
Class Diagram
Introduction
Keep track of students (with a student class that has their name, average, and
scores) in a class and their grades. Assign their scores on tests, quiz, project and
assignments to the students and figure out their average and carry mark for the
class. For added complexity put the students on a bell curve.
Student
-Name: String
-Student Id: String
-Gender: char
-Test: double
-Assignment: double
-Subject: String
-Quiz: double
-Final Exam: double
+Student()
+Student(String, String, char, double,
double, String, double, double)
+Student(Student)
+setStudent(String, String, char, double,
double, String, double, double): void
+setName(String) : void
+setId(String) : void
+setGender(char) : void
+setTest(double) : void
+setAssignment(double) : void
+setQuiz(double) : void
+setSubject(String) : void
+setFinalexam(double) : void
+getName() : String
+getID() : String
+getGender() : char
+getSubject() : String
+getTest() : double
+getQuiz() : double
+getAssignment() : double
+getFinalexam() : double
+toString(): String
+CalculateTest(double):double
+CalculateQuiz(double):double
+CalculateAssignment(double):double
+calculateCarrymark(double):double
+calculateFinalmark(double):double
+calculategrade(double):double
+findStatus(): String
+findClass(): void
Class Definition