Ask a question from expert

Ask now

Student Management System in Java

32 Pages3539 Words212 Views
   

Added on  2019-09-21

About This Document

This program is a student management system in Java that allows users to add new student details, view all student details, view the average of overall marks for students, view how many students' overall marks are equal to, less than, or greater than the average, view student details for grades, view a student's details by ID or full name, view student details for first and second highest overall marks, and sort and display student details by ID or last name.

Student Management System in Java

   Added on 2019-09-21

BookmarkShareRelated Documents
ContentsTitle..................................................................................................................................................2Requirements/Specification.............................................................................................................2User Guide.......................................................................................................................................2Structure/Design/Algorithm............................................................................................................3Limitations.......................................................................................................................................3Testing.............................................................................................................................................5Source program listings...................................................................................................................5Student.java.................................................................................................................................5Client.java..................................................................................................................................14
Student Management System in Java_1
TitleEach student has their own title (Mr, Miss, Ms, Mrs) , first name, second name, id, date of birth, marks of three subjects, grade and overall marks.Requirements/SpecificationThere are 11 options are provided to user to play with. These options are defined the all program functionalities or specification and the user desired requirements in almost.User can :1.add new student details into system2.view the all student’s brief details3.average of all students's over all marks4.view the students name who have the overall marks either equal to or above or below to average of overall marks for all students5.view student details for grades6.view the student details according to passed student id7.view the student details according to passed student full name8.View Student details for first and second heighest overall marks9.sorting and displaying the student details by id10.sorting and displaying the student details by last name11.quite User GuideYou have to just open my project into netbeans. The student text file is already defined in source folder, there is no need to do extra effort for this.
Student Management System in Java_2
Structure/Design/Algorithm
Student Management System in Java_3
Limitations1.The text file must be as I designed it already, any other format will not be accepted.2.There are no option to get the each student marks as percentage.3.Currently after any updating in the student code or in addition of new student record in student array. My system is not saving this into student.txt file.4.The file name is hardcoded not asked by the user.
Student Management System in Java_4
Testing1.I did many test on my code line null pointer exception: success there is no more null pointer exception occur in running of code.2.Test2: If system fails to find the file then an appropriate message is displayed to user: success message is displayed to user.3.Test3: The student details are find by id and name if exists if not then a message will be displayed to user: this is successfully done.4.Test4: the user able to view the Student’s details sorted by last name: this is also successfully done.5.Test5: the user able to view the Student’s details sorted by id: this is successfully completed.Source program listingsStudent.javapublic class Student { private String title;// student title Mr, Miss, Ms, Mrs private String fName;// student first name private String lName;// student last name private long stuID;// student unique id private int day;// student dob day private int month;// student dob month private int year;// student dob year private char grade;// student grade
Student Management System in Java_5
private double[] marks;// student marks private double overAllMarks;// student overAllmarks // constructor to initailize the student public Student(String t, String fn, String ln, long id, int d, int m, int y,double[] mrks) { title = t; fName = fn; lName = ln; stuID = id; day = d; month = m; year = y; marks = mrks; calculateOverAllMarks(); }// get overall marks public double getOverAllMarks() { return overAllMarks; } // set overall marks public void setOverAllMarks(double overAllMarks) {
Student Management System in Java_6
this.overAllMarks = overAllMarks; } public Student(String t, String fn, String ln, long id, int d, int m, int y,char g,double[] mrks,double totalMarks) { title = t; fName = fn; lName = ln; stuID = id; day = d; month = m; year = y; grade = g; marks = mrks; overAllMarks = totalMarks; } //l get student title public String getTitle() { return title; } // set student title
Student Management System in Java_7
public void setTitle(String title) { this.title = title; } // get student first name public String getfName() { return fName; } // student set first name public void setfName(String fName) { this.fName = fName; } // student get last name public String getlName() { return lName; } // student set last name public void setlName(String lName) { this.lName = lName; } // student get student id
Student Management System in Java_8

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Website Development | Assignment
|14
|1218
|21