PROG191 Assignment Java Programming T r a n g 1 | 52 ASSIGNMENT 1 FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Submission date June 9th ,2022 Date Received 1st[.]
PROG191-Assignment- Java Programming ASSIGNMENT FRONT SHEET Qualification BTEC Level HND Diploma in Computing Unit number and title Submission date June 9th ,2022 Re-submission Date Date Received 1st submission Date Received 2nd submission Student Name Đào Vĩnh Khang Student ID GCS200222 Class GCS0905B Assessor name TRUNG NAM 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 KHANG Grading grid Grade (0-10) T r a n g | 52 ❒ Summative Feedback: Grade: ❒ Resubmission Feedback: Assessor Signature: Date: IV Signature: Table of contents: I Introduction: Error! Bookmark not defined II Requirement: III UI design : T r a n g | 52 IV Implementation Explain program structure: Explain classes : Explain important algorithms: 15 Explain how to handle errors: 31 V Test: Junit Test 34 Test Case……………………………………………………………………………………………………………………………………………………………… 40 37 VI Result: 40 VII Conclusion: 52 I Introduction: Currently, the use of books to look up information as well as entertainment at my library is increasing This leads to manual library management which makes it difficult, delayed and impossible for us to control the right amount Therefore, I decided to create an application that supports book management in java language This application helps me to know the exact information of the book and control its price and quantity T r a n g | 52 II Requirement The java program that I created helped me solve some of the following problems: I can enter data, and can edit and delete them easily and understandably -I can find information about the product I need through the search function -I can review the information I have entered before through the program's file reading and writing function III UI design T r a n g | 52 T r a n g | 52 The basic interface of the program will include labels, corresponding to it are text fields and combo boxes for users to enter corresponding information Besides, there are buttons for users to interact with the entered data Finally, a table to display the entered results IV Implementation Explain program structure I create a java application, consisting of main parts: class named book.java and Jframe named bookManagement.java Then the class I created is used to declare member variables with methods Then I'll use them to populate the Jframe I've created Through that, I will create functions for my program I designed my program interface based on the wireframe I created above, and set variable names for each element (button, text field, label, table, combo box, ) T r a n g | 52 T r a n g | 52 T r a n g | 52 Explain classes In this class, I have imported the respective libraries to use the variables that I created: I have declared the local variables with the corresponding type (string,integer, ) as private to make them only used in this class, avoiding duplication with the variables that I use in the Jframe Then I declare methods that contain variables Through those methods, I push the data inside the Jframe T r a n g | 52 In java class Declare variable Wrong data input Error Error reporting system The program runs normally In java Jframe Read and Write File Right path Normal The system runs normally, the file reading and writing functions are still executed, and the user can still see the previous information display Wrong path Error The system runs normally, the file reading and writing functions are still executed, and the user can still see the previous information display The system runs normally, the file reading and writing functions are still executed However, when the user pops up, the previous information is not displayed again T r a n g 38 | 52 In the process of writing code In the process of running the code Ceclare correct variable properties, information Ceclare wrong variable properties, information Normal The system runs normally Error Incorrect syntax Error Enter the correct data type Normal The system is still running, but the displayed information is missing or not displayed The system reported an error that the program could not be run due to incorrect syntax The system runs normally The system runs normally T r a n g 39 | 52 Enter the wrong data type VI Error The system is still The system runs running normally, normally the file reading and writing functions are still normal But when I press the add, edit and delete functions, the system will display an error because I have added the error display function Result T r a n g 40 | 52 This is the basic interface of the system at runtime T r a n g 41 | 52 T r a n g 42 | 52 This is the system interface after successfully adding information T r a n g 43 | 52 This is the system interface after successfully editing information T r a n g 44 | 52 This is the system interface after successfully searching information T r a n g 45 | 52 T r a n g 46 | 52 This is the system interface after wrong editing or adding information T r a n g 47 | 52 T r a n g 48 | 52 This is interface when you want to delete a row T r a n g 49 | 52 T r a n g 50 | 52 This is interface when you want to delete all T r a n g 51 | 52 VII Conclusion My program is complete and ready to use This program has the functions of adding, editing and deleting information There is also a search function that makes it easier for users to control information The file read and write function helps users to check the previously entered information However, this program still has certain limitations: The interface is not too beautiful, popular with users There are still many other functions missing such as sorting, interacting with the database, T r a n g 52 | 52