Inheritance
⢠Write code that will determine the total cost of magazine subscriptions for a family. Define a class for the family that includes a collection of family members.
⢠Have the person class include a personâs name and a collection of magazines.
⢠The magazine class must include the title of the magazine and the cost of the subscription.
⢠There must be four command buttons.
⢠The first button must prompt the user for the familyâs last name.
⢠The second button must prompt the user for the name of each member of the family followed by the magazines they subscribe to with the price.
⢠The third button must list each magazine and the cost for each family member. The program must calculate the cost for each family member as well as a grand total.
⢠The fourth button is an exit button. You
⢠have to declare all variables.
MAGAGULA DF
|