assignment programming java, Thesis of Information Technology

Practice java on student management program

Typology: Thesis

2021/2022

Uploaded on 06/21/2023

nguyen-quoc-anh-fgw-hn-1
nguyen-quoc-anh-fgw-hn-1 🇻🇳

3 documents

1 / 27

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT 1 FRONT SHEET
Qualification BTEC Level 5 HND Diploma in Computing
Unit number and title
Submission date Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Nguyen Hong Van Student ID GCH211217
Class GCH1006 Assessor name Do Hong Quan
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Student’s signature
Grading grid
Grade (0-10)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b

Partial preview of the text

Download assignment programming java and more Thesis Information Technology in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title

Submission date Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Nguyen Hong Van Student ID GCH

Class GCH1006 Assessor name Do Hong Quan

Student declaration

I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that

making a false declaration is a form of malpractice.

Student’s signature

Grading grid

Grade (0-10)

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date:

IV Signature:

  • I. Introduction (P)................................................................................................................................................................................................
      1. Introduce the business problem..................................................................................................................................................................
      1. Requirements...............................................................................................................................................................................................
  • II. Requirement Analysis & Design.......................................................................................................................................................................
      1. Use case diagram.........................................................................................................................................................................................
      1. Class diagram...............................................................................................................................................................................................
  • III. Implementation (P)......................................................................................................................................................................................
      1. Source code and screenshots of the final application with explanation......................................................................................................
      1. Explain classes............................................................................................................................................................................................
      1. Explain how to handle errors (if-else/try-catch/throws)............................................................................................................................
  • IV. Testing plan................................................................................................................................................................................................
  • Figure 1. Use case diagram.......................................................................................................................................................................................... Table of Figures
  • Figure 2. Class diagram................................................................................................................................................................................................
  • Figure 3. Application interface.....................................................................................................................................................................................
  • Figure 4. Add function...............................................................................................................................................................................................
  • Figure 5. Selected "Add new*"..................................................................................................................................................................................
  • Figure 6. Message if null any information..................................................................................................................................................................
  • Figure 7. Telephone & Name functions controlling data type...................................................................................................................................
  • Figure 8. Messages if invalid input.............................................................................................................................................................................
  • Figure 9. btnPicActionPerformed...............................................................................................................................................................................
  • Figure 10. Add successfully........................................................................................................................................................................................
  • Figure 11. TableRowSorter........................................................................................................................................................................................
  • Figure 12. Search function.........................................................................................................................................................................................
  • Figure 13. Search successfully....................................................................................................................................................................................
  • Figure 14. Delete function.........................................................................................................................................................................................
  • Figure 15. Choose one row........................................................................................................................................................................................
  • Figure 16. Delete successfully....................................................................................................................................................................................
  • Figure 17. Update function........................................................................................................................................................................................
  • Figure 18. Exit............................................................................................................................................................................................................
  • Figure 19. Student's properties..................................................................................................................................................................................
  • Figure 20. Getter & Setter..........................................................................................................................................................................................
  • Figure 21. Student's constructor................................................................................................................................................................................
  • Figure 22. If-else........................................................................................................................................................................................................
  • Figure 23. Try-catch...................................................................................................................................................................................................

I. Introduction (P)

1. Introduce the business problem

Teachers in Kim Lien school are having difficulty in managing their students, and they want an app that will allow them to

manage students more readily and conveniently rather than on paper.

Problem: When a school manages student information in the usual manner, it will spend a lot of time looking for student

information, and it will also spend a lot of time searching for documents connected to student information. And the issue

here is that, instead of using paper, Kim Lien school requires an application that can display and save student information.

Solution: I will make an app to help Kim Lien school organize its students more efficiently, saving time, searching for student

information and not storing it.

2. Requirements

Function Name Description

Add student

The student’s information (Name, Address, Date of Birth, Telephone, Gender, Picture) can be

added to the List by the user

Edit student

The user can change the student’s information in the List

(Name, Address, Date of Birth, Telephone, Gender, Picture)

Delete student The student can be removed from the List by the user

Research student

The user can search for a student by Name, Address, Date of Birth, Telephone in

the List

Show information about

the chosen student

Display all of the selected student’s data in the interface

(ID, Name, Address, Date of Birth, Telephone, Gender, Picture)

Exit Exit the program

2. Class diagram Figure 2. Class diagram

III. Implementation (P)

1. Source code and screenshots of the final application with explanation

Upon launching the program, the user will see the interface of an application.

Figure 3. Application interface

On the interface of the program, there will be a section to fill in student information, a list of students, and search for student

by Name, Address, Date of Birth, Telephone.

Figure 4. Add function

Toolbox used in window form: Label, Button, JTable, Textfield.

When click in button “Add new*”, all components will be reset, the text “Adding new student…” also button “Cancel” will

appear, “Add new*” become “Submit”. Besides, user can enter all information except Student ID. ID will increase one after

an add action.

Figure 5. Selected "Add new*"

In adding process, user can not use other action.

Figure 7. Telephone & Name functions controlling data type

Two functions allow Telephone in number and Name in letter, delete or space.

For example, I enter “V” in telephone field and app show me the message.

Figure 8. Messages if invalid input

This function below allow me to display image in “jbAvatar” by get link from my computer (selectedImagePath).

Figure 10. Add successfully

When the admin uses the search function, the admin will enter the Name, Address, Date of Birth or Telephone. Then the

code in private void txtSearchKeyReleased will be run. Before that, you must create TableRowSorter.

Figure 11. TableRowSorter Figure 12. Search function

An implementation of RowSorter that provides sorting and filtering using a TableModel.

Figure 14. Delete function

Select the row of student which user want to delete.

Figure 15. Choose one row

When users want to use the edit function, they must select the row of items displayed on the table to get the data of that

row. The student's information will be displayed and allow you to correct the information.

In the example below, I changed the name "Nguyen Thi B" to "Nguyen Dieu Binh" and modified the information under the

table view.