A cellular phone provider charges the following rates for telephone calls:

Rate Category Rate per Minute
Daytime (6:00 A . M . through 5:59 P . M .) $0.07
Evening (6:00 P . M . through 11:59 P . M .) $0.12
Off-Peak (12:00 A . M . through 5:59 A . M .) $0.05

Create an application that allows the user to select a rate category (from a set of radio buttons) and enter the number of minutes of the call, and then displays the charges, as shown in Figure 8-41. Use the following test data to determine if the application is cal- culating properly:

Rate Category and Minutes Charge
Daytime, 20 minutes $1.40
Evening, 20 minutes $2.40
Off-peak, 20 minutes $1.00
Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.