




























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Assignment - Java Programming (PROG191) - PASS
Typology: Assignments
1 / 36
This page cannot be seen from the preview
Don't miss anything!





























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.
Grading grid Grade (0-10)
Grade: Assessor Signature: Date: Lecturer Signature:
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.
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.
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.
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.
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.