Mr. Rangaswami works at a Recreation Park as a system analyst. He has created the following GUI.
Answers
Mr. Rangaswami works at a Recreation Park as a system analyst. He has created the following GUI. When a group arrives at the Recreation Park, the number of people in the group and whether the group wants to enjoy the Water Park or not is entered. Entry fee is Rs 500 per person. The person can choose to play at Water park by selecting the checkbox. Rides of Water Park will cost RHelp him to write code for the following : (i) On the click of 'Calculate' button, textfield for 'Entry Fees' should display (Entry Fees per person) x (number of people). If 'Water Park' check box is selected, textfield for 'Water Park charges' should display Water (Park Charges per Person) x (Number of People). TextField for 'total Amount' should display sum of Entry Fees and Water Park charges for all the people in the group.
(ii) Write Java code to clear all Textboxes on the click of 'Clear' Button.
(iii) Write Java code to close the application on the click of 'Exit' Button.s 250 extra per person.