Internet Service Provider, Part 1
An Internet service provider offers three subscription packages to its customers, plus a discount for nonprofit organizations:
a. Package A: 10 hours of access for $9.95 per month. Additional hours are $2.00 per hour.
b. Package B: 20 hours of access for $14.95 per month. Additional hours are $1.00 per hour.
c. Package C: Unlimited access for $19.95 per month.
d. Nonprofit Organizations: The service provider gives all nonprofit organizations a 20% discount on all packages.
The user should select the package the customer has purchased (from a set of radio buttons) and enter the number of hours used. A check box captioned Nonprofit Organization should also appear on the form. The application should calculate and display the total amount due. If the user selects the Nonprofit Organization check box, a 20% discount should be deducted from the final charges. Implementation note: all rates, limits, and discounts must be declared using symbolic constants (using the Const button).
Input validation: The number of hours used in a month cannot exceed 744. The value must be numeric.
Use the following data to determine if the application is calculating properly: Package and Hours The Monthly Charge
Package and Hours | The Monthly Charge |
Package A, 5 hours, nonprofit Package A, 25 hours Package B, 10 hours, nonprofit Package B, 25 hours Package C, 18 hours, nonprofit Package C, 25 hours | $ 7.96 $39.95 $11.96 $19.95 $15.96 $19.95 |
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.