

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
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 Tuesday, June 13, 2023 Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Tran Anh Tuan Student ID GCD Class GCD1103 Assessor name Ho Van Phi 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 Tuan Grading grid Grade (0-10)
Grade: Assessor Signature: Date: IV Signature:
1. Introduce the business problem that you need to solve The University of Greenwich is a UK-based international school that has partnered with FPT Corporation to establish a presence in Vietnam. However, the school still faces some obstacles in library management when it continues to store information on books and stories on paper, which wastes time and may cause some difficulties in management. library manager. So they hired me to develop library management software to help them process book and story information. The software is written in Java and must meet several important criteria, including the user interface, the ability to read and write data of books and stories from a file, and compatibility with data collection (search item). Last but not least, double check the application before returning it to the school to ensure that there will be no problems during use.
1. List of requirements from the business problem In order to meet the current work situation at the library (as I mentioned at the beginning), my program will have to have the following functions and requirements. As a manager, I want to: The interface of the program must be beautiful and user-friendly. The software allows the user to add, store and delete the information in the book. Users can use the application to update information about books. Users can search for newly added books from the software. The software allows users to save files and read files. In order to meet the above requirements, I will decide to use Java language to design and be able to provide optimal management in the current field. As a library manager, I want to add, remove, and search books. As a library manager, I want to save book files. As a library manager, I want to show book files.
1. List of wireframes Start the process of developing a software system that can fulfill common needs. The process of choosing the layout of the interface begins with the design of the wireframe. Afterward, the next step could depend on how the wireframe is implemented. Figure 1. Wireframe of the library management system
This student management system has 6 function buttons: add, delete, search, save, write files and read files. Each button serves a different purpose, such as the “Add Button” to erase the information about the book the user has just entered, the “Delete Button” to delete the book information, the “Search Button” to find the book information the user is looking for, "Save Button" to save the book information the user just entered, "Record File Button" to record the books that the user has just saved to the file, "Display Button" to read and display the information of the books in the file previously entered by the user. Figure 3. Function Button Last but not least, there is a table that displays book information when the user successfully enters book information into the system. Figure 4. Information Table
1. Explain program structure Figure 5. Structure When the program is launched, it will display the form for the user will have: Text field of Book Title, ID Number, Category, and Author for the user to type. Function Button: Add, Delete, Search, Record File, Save, and Display. Table to display all the information of the book that type from the keyboard. A form accepts user actions like adding, removing, searching, saving, recording files, and displaying when a user interacts with it. The form also has the task of receiving data via text fields such as Book Title and ID Number. 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' file is then read using the 'ReadFile' function, and the data is provided to the display based on the user's requirements.
Figure 7. QLTV Class
The user will be able to see a QLTV (JFrame) object by doing this. This might be viewed as the program's public face. Where the JFrame window's settings are meticulously changed through the use of code to provide the user with the most enjoyable experience.
3. Explain important algorithms Figure 8. Jtable This command array is used to create a 5 - column version of No, Book Title, ID Number, Category, and Author. In addition, this is the area where the entered book information will be displayed.
Figure 11. Delete Button This method is used to delete the information of books from the list.
Figure 12. Search Button This function will search for book information by title and display it on the table.
Figure 14. Save Button This method is used to save data to a table and display it as a copy before it is recording to a file
Swing Designer is a sophisticated user interface designer for Swing. It is simple to use and has a plethora of useful capabilities. So, in this project, I will utilize Swing Designer to design a form. Figure 15. Form