logo

COIT 20245 - Introduction to Programming Assessment

   

Added on  2024-04-26

16 Pages1328 Words315 Views
 | 
 | 
 | 
COIT 20245 - Introduction to Programming
Assessment item 2—JAVA Program using array of objects
Student Name: Amair Ali Mohammed
Student ID: 12059308
0
COIT 20245 - Introduction to Programming Assessment_1

Contents
UML Class diagram:........................................................................................................................2
How long it took to create the whole program................................................................................2
Problems encountered:.....................................................................................................................2
Implementation Output screenshots:...............................................................................................3
Test cases:......................................................................................................................................10
References......................................................................................................................................14
Appendix........................................................................................................................................15
List of Figures
Figure 1 UML Class Diagram.........................................................................................................2
Figure 2 menu system......................................................................................................................3
Figure 3Appeared page when user selects menu option 1...............................................................4
Figure 4 Output of Menu 1..............................................................................................................4
Figure 5Appeared page when user selects menu option 2...............................................................5
Figure 6Appeared page when user selects menu option 3...............................................................6
Figure 7Searching of customer name..............................................................................................7
Figure 8Appeared page when user selects menu option 4...............................................................8
Figure 9Appeared page when user selects menu option 5...............................................................9
Figure 10Appeared page when user selects menu option 6...........................................................10
Figure 11Test Case 1.....................................................................................................................10
Figure 12Test Case 2.....................................................................................................................11
Figure 13Test Case 3.....................................................................................................................11
Figure 14 Test Case 4....................................................................................................................12
Figure 15 Test Case 5....................................................................................................................13
1
COIT 20245 - Introduction to Programming Assessment_2

UML Class diagram:
A model of Class Diagram is the stationary structure of the system. It helps in determining
relationships among objects, classes, operations, and attributes (Goswami, 2012).
Figure 1 UML Class Diagram
Booking class in the image shown above is a parent class and Hotel class here is Child class. In
both the classes all the attributes are private and methods are public.
How long it took to create the whole program
I completed this whole program in 1 week. Firstly I have researched for this program in 1 day.
After that, I started to create a program.
Problems encountered:
First I faced problem in JOptionPane. When I clicked on cancel button it was giving Null
pointer exception. I have solved this issue using exceptional handling.
2
COIT 20245 - Introduction to Programming Assessment_3

Second I faced problem in validation like customer name can't be blank, a number of
days can't be blank, maximum limit can't exceed but I have solved all these problems by
doing research.
Implementation Output screenshots:
Figure 2 menu system
3
COIT 20245 - Introduction to Programming Assessment_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents