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 çentre 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. Table 1: Hotel room rate according to room type Room type single Price in RM (per night) 250 double 320 suite 500

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter2: Planning Applications And Designing Interfaces
Section: Chapter Questions
Problem 7E
icon
Related questions
Question
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.
Table 1: Hotel room rate according to room type
Room type
single
Price in RM (per night)
250
double
320
suite
500
Transcribed Image Text: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. Table 1: Hotel room rate according to room type Room type single Price in RM (per night) 250 double 320 suite 500
Expert Solution
steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Knowledge Booster
Multimedia tools and applications
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT