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