Assignment - Java Programming (PROG191) - PASS, Assignments of Computer Science

Assignment - Java Programming (PROG191) - PASS

Typology: Assignments

2021/2022

Uploaded on 09/10/2022

minh-huy-huynh
minh-huy-huynh 🇻🇳

4.7

(58)

39 documents

1 / 36

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
ASSIGNMENT FRONT SHEET
Qualification
BTEC Level 5 HND Diploma in Computing
Unit number and title
Object Oriented Programming with Java
Submission date
29/08/2022
Date Received 1st submission
Re-submission Date
Date Received 2nd submission
Student Name
Huynh Minh Huy
Student ID
GCD210173
Class
GCD1001
Assessor name
Pham Thanh Son
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
Huy
Grading grid
Grade (0-10)
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

Partial preview of the text

Download Assignment - Java Programming (PROG191) - PASS and more Assignments Computer Science in PDF only on Docsity!

ASSIGNMENT FRONT SHEET

Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Object Oriented Programming with Java Submission date 29/08/2022 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Huynh Minh Huy Student ID GCD Class GCD1001^ Assessor name Pham Thanh Son 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 Huy

Grading grid Grade (0-10)

 Summative Feedback:  Resubmission Feedback:

Grade: Assessor Signature: Date: Lecturer Signature:

Table of Contents

CHAPTER 1: INTRODUCTION.

I. Introduce the business problem that you need to solve. Greenwich University is a UK-based international school that has partnered with FPT Corporation to create a presence in Vietnam. However, the school has had some obstacles in student management since they continue to store student information on paper, which is a waste of time and may cause some problems in student management. administration of student information So they hired me to develop student management software to help them handle student information. The software is written in Java and must fulfill a number of critical criteria, including a user interface, the ability to read and write student data from a file, and compatibility with data gathering. data (item search). Last but not least, test the application again before returning it to the school to ensure that there will be no issues during use. CHAPTER 2: REQUIREMENT. I. User Requirement. The software is required to handle students' properties:  ID.  Full Name.  Gender.  Grade. There are some functions for the system:  Create: Save the information of student.  Read: Display the information of student.  Update: Update the information of student.  Delete: Delete the information of student.  Search: Find the information of student.

CHAPTER 3: UI DESIGN.

I. Wireframe of the system. There are some fields for user to type and choose the information of student:  Text Fields is where you provide student information such as ID, Full Name, and Grade. Figure 1 : Wireframe of the Student Management System.

Last but not least, there is a table that displays student information when the user successfully enters student information into the system. Figure 5 : Information Table.

CHAPTER 4: IMPLEMENTATION.

I. Explain program structure. When the program is launched, they will display the form for the user it will have:  Text field of ID, Full Name, Grade for user to type.  Radio Button to choose genders.  Function Button: Add, Delete, Search and Update.  Table to display all the information of student that type from the keyboard. A form accepts user actions like as adding, removing, searching and updating when a user interacts with it. The form also has the task of receiving data via text fields such as id and name. The data is sent into the view, followed by the controller, and given to a specific method to handle, after which the managed data is passed into the 'ArrayList' and transferred to the 'WriteToFile' function to write or overwrite them into the 'Data The 'Database' file is then read using the 'ReadFile' function, and the data is provided to the display based on the user's requirements. Figure 6 : Structure.

Getters and setters are used to safeguard data, which is critical when building classes. A getter method gets the value of an instance variable, but a setter method changes it. As a result, getters and setters are sometimes called accessors and algoritmo.

  1. StudentManagement Class. Figure 9 : List and File. I create list for product to save the data which are add to list. I also create “dbFile” where the data is write and read. Figure 10 : Function Clear(). I create function Clear() to clear text inside the text field when implement function.

This method used to add the information of student to the list. Figure 11 : Add Button.

Figure 13 : Update Button. This method used to update the information of student to the list previously entered by the user.

Figure 14 : Search Button. This function allows us to search for a student's information by using the input parameter id and comparing it to all the ids in a list. If there are any matches, we will return this student with the following ID input. Figure 15 :Read File Function. This method used to read the information of student from files

III. Explain important algorithms.

  1. Add Button Function. Figure 18 : Add Button Function.

In this function, student information includes id, name, gender, and grade. This function will check is the information for the student duplicate or valid. When a user wishes to add a new student, they must input that student's info; if the information is lacking, the computer will notify the user and prompt them to provide it. The software then gets the information and verifies it to see if it is unique or valid; if not, the program will compel the user to input it again until it is unique and valid; after everything is correct, the program will handle it by adding it to an array list and saving that array list to file.

  1. Delete Button Function. Figure 19 : Delete Button Function. In this function, studentArrayList.size() returns the size of the array list, studentArrayList.getId() returns the student's information, and studentArrayList.getName() returns the name of the student (i). getId (). equal(id)' checks whether the student id matches the entered id. When deleting a student, the user must input the student's id. The application will then check to see whether that id is null, and if it is, it will compel the user to input it again. If everything is right, the software will proceed by