Contents. Title 2. Requirements/Specification 2. User G

Added on - 21 Sep 2019

  • 32

    Pages

  • 3539

    Words

  • 180

    Views

  • 0

    Downloads

Trusted by +2 million users,
1000+ happy students everyday
Showing pages 1 to 8 of 32 pages
ContentsTitle..................................................................................................................................................2Requirements/Specification.............................................................................................................2User Guide.......................................................................................................................................2Structure/Design/Algorithm............................................................................................................3Limitations.......................................................................................................................................3Testing.............................................................................................................................................5Source program listings...................................................................................................................5Student.java.................................................................................................................................5Client.java..................................................................................................................................14
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 programfunctionalities 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 toaverage 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.quiteUser GuideYou have to just open my project into netbeans. The student text file is already defined in sourcefolder, there is no need to do extra effort for this.
Structure/Design/Algorithm
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 instudent array. My system is not saving this into student.txt file.4.The file name is hardcoded not asked by the user.
Testing1.I did many test on my code line null pointer exception: success there is no more nullpointer 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 bedisplayed to user: this is successfully done.4.Test4: the user able to view the Student’s details sorted by last name: this is alsosuccessfully done.5.Test5: the user able to view the Student’s details sorted by id: this is successfullycompleted.Source program listingsStudent.javapublic class Student {private String title;// student title Mr, Miss, Ms, Mrsprivate String fName;// student first nameprivate String lName;// student last nameprivate long stuID;// student unique idprivate int day;// student dob dayprivate int month;// student dob monthprivate int year;// student dob yearprivate char grade;// student grade
private double[] marks;// student marksprivate double overAllMarks;// student overAllmarks// constructor to initailize the studentpublic 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 markspublic double getOverAllMarks() {return overAllMarks;}// set overall markspublic void setOverAllMarks(double overAllMarks) {
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 titlepublic String getTitle() {return title;}// set student title
public void setTitle(String title) {this.title = title;}// get student first namepublic String getfName() {return fName;}// student set first namepublic void setfName(String fName) {this.fName = fName;}// student get last namepublic String getlName() {return lName;}// student set last namepublic void setlName(String lName) {this.lName = lName;}// student get student id
desklib-logo
You’re reading a preview
Preview Documents

To View Complete Document

Click the button to download
Subscribe to our plans

Download This Document