Ms. Fauzia works as a programmer in "TelTel Mobile Company" where she has designed a software to compute charges to be paid by the mobile phone user. A screenshot of the same is shown below :
Each Call is charged at Rs 1.00.
Each SMS is charged at Rs 0.50.
Users can also opt for Mobile Data PIan. Charges for Mobile Data Plan are flat Rs 50.00.
Help Ms. Fauziain writing the code to do the following:
(i) When the 'Calculate Charges' button is clicked, 'Calls and SMS Charges', 'Mobile Data Plan Charges' and Amount to Pay' should be calculated and displayed in the respective text fields.
'Amount to Pay' is calculated as :
Calls and SMS Charges + Mobile Charges (if any).
(ii) When the 'Clear' button is clicked, all the textfields and checkbox should be cleared.
(iii) When the 'Exit' button is clicked, the application should close.