Assignment - Java Programming - Vo Minh Quoc, Essays (university) of Java Programming

Assignment - Java Programming - Vo Minh Quoc Assignment - Java Programming - Vo Minh Quoc

Typology: Essays (university)

2021/2022

Uploaded on 06/14/2022

quoc-vo-minh
quoc-vo-minh 🇻🇳

4.8

(13)

14 documents

1 / 74

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 04/05/2022 Date Received 1st submission
Re-submission Date Date Received 2nd submission
Student Name Võ Minh Quốc Student ID GCD201870
Class GCD0904 Assessor name Phạm Thanh Sơn
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 Quoc
Grading grid
Grade (0-10)
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a

Partial preview of the text

Download Assignment - Java Programming - Vo Minh Quoc and more Essays (university) Java Programming in PDF only on Docsity!

ASSIGNMENT 1 FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title

Submission date 04/05/2022 Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Võ Minh Quốc Student ID GCD

Class GCD0904 Assessor name Phạm Thanh Sơn

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 Quoc

Grading grid

Grade (0-10)

❒ Summative Feedback: ❒ Resubmission Feedback:

Grade: Assessor Signature: Date:

IV Signature:

 Name

 Gender

 Birthday

 Email

 Phone number

  • Have four main functions:

 Create: To save information of student.

 Read: To display all or found students.

 Update: To update information of student.

 Delete: To delete information of student.

  • And have more sub-functions, such as:

 Sorting ascending, descending information of students by their ID

 Find student by id and/or name

III. UI Design

  • Wireframing is a way to design a website service at the structural level. A wireframe is a layout of a web page that

demonstrates what interface elements will exist on key pages. It is a critical part of the interaction design process. Because the

aim of a wireframe is to provide a visual understanding of a page early in a project to get stakeholder and project team

approval before the creative phase gets underway, I decided to place it in this report to support my work become easy, and also

customer can understand my application which I designed for them. This is a wireframe of student management software:

  • These are the fields for user to type and choose students’ information, including:

 Text fields with rectangle shape which is the place to type student information, such as ID, Name, Birthday, Email,

Phone number.

 Two radio buttons for choosing student gender.

  • This is the two radio buttons to choosing for sorting ascending and descending students’ information by their ID
  • This is the table for display the information of students for all or found students. **IV. Implementation
  1. Link github:** https://github.com/Sagit612/ProjectJava

2. Classes: There are 4 classes in my program, including:  ‘StudentController’ class: contains CRUD functions, check information functions, read/write file functions, sorting student information functions. Those functions have the mission to handle the data and then pass it to the class ‘MainFrame’ which is the view.

 ‘MainFrame’ class: contain button, table,…, return student information, getting from ‘StudentController’ class, to table functions. This class also handle the button events.  ‘App’ is the class main which help running the program.

3. Program structure:

This is structure of my program, including 4 class, ‘Student’ class, ‘StudentController’ class, ‘MainFrame’ class. Whenever the program starts, the view appears and the ‘ReadDataFromFile’ function is called with its function passing the data from file to list and the data will be passed into the ‘ArrayList’, then the data from the ‘Database’ file are passed into the ‘ReadFile’ function. The view contain:  Text field of id, name , birthday, email, phone number, and search id and name: to get text for handling.  Radio button of choosing genders, add/delete/update functions, and sorting function.  Button: Save, Delete, Update, Search  Table to display the information of students Whenever user add interact with view, the view will receive user actions such as adding, deleting, updating, the view has the mission to receive data through text field such as id, name text field, the data will be passed into view, followed by controller, and given to a certain function to

handle, then the handled data will be passed into the ‘ArrayList’ and continuedly transferred to ‘WriteToFile’ function in order to write or override them into the ‘Database’ file. The ‘Database’ file, then, will be read by ‘ReadFile’ function, and after that data corresponding with user need will be returned to the view.

4. Important algorithms:

A. Adding student:

This is a flowchart of adding new student to ‘database.txt’ file

 ‘ CheckStudentInformationValid( studentInformation ) ’ is a function from ‘StudentController’ class to check if student information is valid or not. When user want to add new student, they need to enter information of that student, if information is null the program will alert and force user to enter information. Then the program receives that information to check it first if it is unique (except for name and birthday) or valid, if not, program will force user to enter again until that information is unique and valid, after everything is correct, the program will process it by add it to array list and write that array list to file.

B. Delete student:

This is the flowchart of deleting student by id

  • Explanation:  ‘id.isEmpty() ’ is to check if user entered id.  ‘_students.size()’ is the size of the array list.

Then I create the function ‘checkbirthday’ to check the birthday is valid or not, but the when I tried to add birthday with the remaining student information, it appeared the error.