Complete the additional property procedure which uses to


Assignment

Homework assignments must be individual's original work. Discussion without taking notes will be fine, but collaborations will not be tolerated. Dishonesty will result in an automatic F grade and a formal charge of Academic Dishonesty will be reported.

Each member of Glasgow Health Club must pay monthly dues that consist of a basic fee and one or more optional charges. The basic monthly fee for a single membership is $50; for family membership, it is $90.If the member has single membership; the additional monthly charges are $30 for tennis, $25 for golf, and $20 for racquetball. If the member has family membership; the additional monthly charges are $50 for tennis, $35 for golf, and $30 for racquetball.

In this assignment, you are required to complete the given incomplete application which displays the member's basic fee, additional charges, and monthly dues. The application contains a class called Dues (Dues.vb).The name of the solution, project, and form file are Glasgow Health Solution, Glasgow Health Project, and Main Form.vb, respectively.

The interface of this application is shown as follows:

Function/Sub procedure

Description

exitButton_Click

Define exitButton click event.

ClearLabels

Clear the content of the Labels.

calcButton_Click

Calculates the monthly dues, which include a basic fee and optional charges.

Complete the following parts in the given application. Questions 1 to 6 are in Dues.vb file and Questions 7, 8 are in Main Form.vb file.

Fill the given two blanks so that the statement defines a class called Dues.

Complete the Basic() Property procedure which uses to retrieve and set _basic Property's value.

Complete the Additional() Property procedure which uses to retrieve and set _additional Property's value.

Write code to directly initialize the _basic and _additional variables to zero within the default constructor.

Write code to indirectly initialize the _basic and _additional variables to b and a respectively within the parameterized constructor.

Note: Use Public properties Basic and Additional.

Complete the GetDues() Function procedure which returns the summation of _basic and _additional variable values.

Fill the statement so that it instantiate an object of class Dues called memberDues.

Fill the statements so that they call the Basic Property procedure in Dues class to set the value of _basic to the value of SingleBasic/ FamilyBasic variable according to the conditions.

Solution Preview :

Prepared by a verified Expert
Programming Languages: Complete the additional property procedure which uses to
Reference No:- TGS01723598

Now Priced at $40 (50% Discount)

Recommended (96%)

Rated (4.8/5)