0% found this document useful (0 votes)
59 views7 pages

Java Assignment 1

This class diagram outlines a student grade book application that allows tracking students' names, averages, and scores on tests, quizzes, projects, and assignments. It defines a Student class with getters and setters for attributes like name, ID, gender, and scores. Methods calculate a student's average, carry mark, final mark, grade, and status in a class.

Uploaded by

Razi Irsyad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
59 views7 pages

Java Assignment 1

This class diagram outlines a student grade book application that allows tracking students' names, averages, and scores on tests, quizzes, projects, and assignments. It defines a Student class with getters and setters for attributes like name, ID, gender, and scores. Methods calculate a student's average, carry mark, final mark, grade, and status in a class.

Uploaded by

Razi Irsyad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

Student Grade Book Application

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

You might also like