



















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 Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Trinh Nguyen Phuong Student ID GCH Class GCH1101 Assessor name Dinh Duc Manh 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: IV Signature: I. Introduction: .......................................................................................................................................................... 3 II. Requirement: ......................................................................................................................................................... 4 III. UI design: ............................................................................................................................................................... 4 IV. Implementation: .................................................................................................................................................... 4
The java program that I created helped me solve some of the following problems:
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.
▪ I then apply java's encapsulation through getter and setter methods to define accessibility for the private properties I initialized above and allow those properties to be viewed and modified.
▪ I applied for java’s inheritance to this class. Through calling hashCode() method I will get the hashcode value of the above initialized elements. Combined with that, I use the equals () method to semantically compare two objects (by comparing the data members of the class).
▪ getSelectedItem() method returns the currently selected item. ▪ getSize() method returns the size of the rooms list. ▪ getElementAt(int index) method returns the element at the specified index in the rooms list.
Test case Test Action Test Type Results Expect ed Outco me In java class Declare variable Enter correct data Normal The program runs normally The program runs normally Wrong data input Error Error reporting system 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 informa tion display. The system runs normally, the file reading and writing functions are still executed, and the user can still see the previous information display.