JAVA PROGRAMMING
Question 1 Get room rate Х Room type single Number of night 3 Room rate 750.00 Get rate Close Figure 2: Get room rate GUI Write a complete program to create a graphical user interface (GUI) which calculate the room rate according to Table 1. The program should calculate and show the room rate in a text field which is not editable when the Get rate button is pressed and the system will be terminated when the Close button is pressed. The size of GUI should be set as 300 x 250. It should be shown in the centre of the screen and the program should shutdown when the user press the close button on the top right corner. Lastly, remember to create an object for the class in a main() method. (30 marks) Table 1: Hotel room rate according to room type Room type Price in RM (per night) single 250 double 320 suite 500
JAVA PROGRAMMING
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
JAVA PROGRAMMING
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!