Cancelled

Visual Basic - Events and Inheritance

Using the Car code attached, add code that declares and raises an event named LowGas. Raised when the gas level reaches 5 or lower.

On the form side, add code so that when the LowGas event is raised, the event is handled by asking the user to pump gas using static event handling.

Implement the handling of the LowGas event using dynamic event handling. Remove the handler properly.

Develop a GreenCar that uses Car as a parent.

a. GreenCar will suppress the parent's GasLow event so that objects based on GreenCar will not be able to respond to the GasLow as is Instead, when GasLow fires, GreenCar will raise its own GasLow - you may use a different name - but only if the gas is at 2 or less gallons.

b. On the client side, divide the form into two areas, on for Car and another for GreenCar. Make sure each area has the needed controls to enter each car's data, with two sets of buttons to Drive and Pump Gas. However, since both sets of Drive and Pump Gas buttons will do same action; handle these events in one handler per button. For example handle Car and GreenCar's Drive click events in one handler, and do the same for the Pump Gas buttons. This will require you check which button was clicked so that you know which object to work on.

Skills: Visual Basic

See more: asking for a raise, visual basic 2010 tcp client, visual basic net tcp client server, visual basic 2010 tcp client example, visual basic 2008 tcp client server source code, visual basic 2008 tcp client, visual basic net tcp client, visual basic net chat client, visual basic team speak client, visual basic open mail client, basic visual basic oracle database application copy paste

About the Employer:
( 0 reviews ) United States

Project ID: #10184251

1 freelancer is bidding on average $30 for this job

it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

$30 USD in 1 day
(75 Reviews)
5.1