Write code to directly initialize basic variables to zero

Assignment Help Programming Languages
Reference no: EM131320945

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.

Reference no: EM131320945

Questions Cloud

What is the cross-rate of euros to swiss francs : What is the cross-rate of euros to Swiss francs (Euro/SF)? Enter your answer rounded off to FOUR decimal points - how many yen could one U.S. dollar buy tomorrow? Enter your answer rounded off to two decimal points.
Why do researchers use factor analysis : Imagine that you conducted a factor analysis on a set of variables that were uncorrelated with one another. How many factors would you expect to find? Why?
What is the decision facing ikea : What is the decision facing IKEA? What factors are important in understanding this decision situation? What are the possible alternatives? Fully describe at least two.
Electric potential difference between front and tack surface : Show that the Fermi energy or Fermi potential is spatially constant in the n-type Si slice with linearly varying donor dopant impurity concentration as given in given problem.
Write code to directly initialize basic variables to zero : 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.
Marketing department of a large manufacturing firm : Suppose that the marketing department of a large manufacturing firm decided to adopt the motto, "We will build a product to suit any buyer's needs." What type of difficulties could this philosophy impose on the operations department?
Describe how structural equations modeling works : Distinguish between latent variable modeling and path analysis as types of structural equations modeling.
Sources of input to a marketing information system : Marketing Information Systems.  Student can identify at least three sources of input to a marketing information system for a product or service offering
Compute cost of goods sold and gross profit under fifo : Compute cost of goods sold and gross profit under FIFO - Compute cost of goods sold and gross profits using LIFO.

Reviews

Write a Review

Programming Languages Questions & Answers

  Benefits of validating the forms

When you are collecting data, you need to consider what data to collect, why you are collecting the data. What are other benefits of validating your forms? How are forms validated? What are some form validation best practices?

  Pseudocode for a program to solve mathematical problem

Pseudocode for a program to solve the following problem. A student borrows $3,000 at an interest rate 2% per month on the unpaid balance.

  Define a command syntax and small-step semantics

Define a command syntax and small-step semantics for if-then (without the else) and extend Agat's type system with a rule for if-then

  A fixed quantum of information packaged together

A fixed quantum of information packaged together with an IP address and other data for sending information over the internet

  Write the a switch statement whose controlling expression

Write the a switch statement whose controlloing expression is the variable area_code.

  Javascript program that will read a message string

Write a JavaScript program that will read a message string and a number from text boxes on a Web page. The program will then use those values to display some information to the user.

  Program to compute perimeter and area of rectangle

Write a program that asks for length L and the width W of a rectangle, then compute perimeter and area of the rectangle.

  Convolving with user defined kernels

Convolving with User defined Kernels - Edit the original Kernel to make the output image shifted by 3 pixels to the left.

  Write accessors for each of the declared class variables.

Read the file and display in the listbox each record splitting out the fields, eliminating the comma delimiters and placing spaces between the fields.

  Write a subroutine that keeps prompting for a filename

Write a subroutine that keeps prompting for a filename until a valid file is entered by the user (print out "file found, thanks") or until five attempts have failed (print out "you did not enter a valid file name"). Call the subroutine from the main ..

  Also assume the air behaves as an ideal gas with constant

consider the evaporator section of a window air conditioner note the evaporator may be considered as a shell and tube

  Use the linked stack class to support

Use the Linked stack class to support an application that tracks the status of an online auction. Budding begins at 1(dollars, pounds, euros, or whatever) and proceeds in increments of at least 1

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd