ISM240 – Homework 4
Q1. Health Club Membership Fee Calculator
The Bay City Fitness and Health Club charges the following monthly membership rates:
Adult Membership: $50/month
Senior citizen: $40/month
The club also offers the following optional services, which increase the base monthly fee:
Yoga lessons: add $10 to the monthly fee
Zumba lessons: add $15 to the monthly fee
Karate: add $20 to the monthly fee
Personal Trainer: add $25 to the monthly fee
Create an application that allow the user to select a membership rate, select optional services, and the number of months of the membership. The application should display total fee including 8% sales tax.
The application should have the following functions and procedures.
Returns the rate of the selected membership type
Returns the cost of the selected optional services
Accepts the subtotal as an argument. Return the amount of sales tax on that amount. The tax rate should store in a class level constant.
Resets the optional services check boxes to unchecked
Resets the membership rate radio buttons to their initial value
Calculates and displays the total fee.
Ends the application.
Resets the controls on the form to their initial values.
Input validation: Validate the number of months entered by the user.
Graphical user interface – 20 points
Input validation, standard naming conventions, and comments – 10 points
Functions and procedures – 70 points