






















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
PROG191- Java Programming Pass
Typology: Assignments
1 / 30
This page cannot be seen from the preview
Don't miss anything!























ASSIGNMENT FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Java Programming Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Student ID Class Assessor name Le Ngoc Thanh 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 P5 P6 P7 M3 M4 M5 M6 D3 D
Student Name/ID Number: Unit Number and Title: Java Programming Academic Year: 2022 – 2023 Unit Assessor: ThanhLN Assignment Title: Design, Implement and Test a GUI application Issue Date: Submission Date: Internal Verifier Name: Date: Submission Format: Format: ● The submission is in the form of 1 document. ● You must use the Times font with 12pt size, turn on page numbering; set line spacing to 1.3 and margins to be as follows: left = 1.25cm, right = 1cm, top = 1cm, bottom = 1cm. Citation and references must follow the Harvard referencing style. Submission: ● Students are compulsory to submit the assignment in due date and in a way requested by the Tutor. ● The form of submission will be a soft copy posted on http://cms.greenwich.edu.vn/. ● Remember to convert the word file into PDF file before the submission on CMS. Note: ● The individual Assignment must be your own work, and not copied by or from another student.
● If you use ideas, quotes or data (such as diagrams) from books, journals or other sources, you must reference your sources, using the Harvard style. ● Make sure that you understand and follow the guidelines to avoid plagiarism. Failure to comply this requirement will result in a failed assignment. Unit Learning Outcomes: LO1 Understand basic programming skills and OOP paradigm LO2 Understand how to detect errors and handle errors LO3 Understand how to working with files in applications LO4 Understand how to build GUI application Assignment Brief: You have to develop an application to solve a small business problem. The problem requires a graphical user interface with features that required reading / writing data from text file, working with a collection of data (searching for item / min / max / sum / etc.). The application must handle errors so that it will not crash at end user side. The application also need to be fully tested before the production phase. You need to write a technical report about the development of the application. Content of the report should cover design, implementation and testing. In the end you need to demo your application, explain your code and answer technical questions.
P a g e | 1
1. Introduction. The management of students at a university is extremely challenging, yet the institution chooses to keep student data on paper, which is inefficient. They hired me to develop a student management tool that would help them manage their student data. The program must satisfy a number of crucial requirements, including having a graphical user interface, enabling students to read and write data from files, and enabling them to engage with the data collecting. Moreover, test the application before deployment to ensure that the issue is not with the end user. And all flaws must be fixed before the product is delivered to the consumer.
2. Requirement. There are some requirements from the University, that is system must have some functional requirement such as: Adding new Students, Deleting Students, Editing information about students, Saving students’ information to a file, and Load student information from a file. This report will help to use the minor student's management system:
P a g e | 3 3.2. Home page system: Figure 2: Home page system wireframe No Item Description Constraints 1 ID box User can use it to enter student ID Can only use numbers (programmed to automatically add numbers) 2 FullName box Users can use it to enter their student names. At least 1 character and most 100 characters 3 Address box Users can use it to enter their addresses. At least 1 character and most 100 characters 4 Grade box Users can use it to enter their Grades. Can only use numbers 5 Add button Users can use it to add new students to the system. Just one click
P a g e | 4 6 Edit button Users can use it to edit student information in the system. Just one click 7 Update button Users can use it to update student information in the system. Just one click 8 Delete button Users can use it to delete student information in the system. Just one click A brief explanation of the program structure:
P a g e | 6
P a g e | 7 This is the class that contains the method of the system's login component. Because it is used to design the interface of the login section through the code about the location, components, and coordinates for this part. Figure 5: Classes in my system (Source Code)
P a g e | 9 This is the class that contains the method of the system's homepage component. Because it is used to run and perform user operations after entering data and the entered data will be stored through the student.xml file. Figure 7: Classes in my system (Source Code)
P a g e | 10 Here are the class methods to initialize the login part of the system and the method to store the Username and Password (preset). Figure 8: Classes in my system (Source Code) 4 .3. Explain important algorithms: The information for the student must be entered when adding a new student; if the information is missing, the computer will prompt the user to enter it. When the user enters the information a second time to make it unique and valid, the program forces them to enter it again. Once everything is correct, the program processes the information by adding it to an array list and writing that array list to a file.
P a g e | 12 4 .4. Explain how to handle errors: The software will display an error notice that reads, "Age cannot be left blank!" if the user inputs "age" outside of the permitted range (from 0 to 100) while inputting student information. Figure 11: Errors handled Code that does this: Figure 12: Errors handled code (Source Code) When entering student information, the software will display the notice "Grade unlawful 0 to 10" if
P a g e | 13 the user enters "Grade" outside of the permitted range (from 0 to 10). Figure 13: Errors handled Code that does this: Figure 14: Errors handled code (Source Code)