This class is designed to keep track of the replacement of fuel powered equipment
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

This class is designed to keep track of the replacement of fuel powered equipment

Task 3 – Creation of Fuel Powered Equipment Class

You are to create a class named ‘FuelPoweredEquipment’. This class is designed to keep track of the replacement of fuel powered equipment such as lawn mowers and chainsaws.

You will need to create the class as outlined below:

• The ‘FuelPoweredEquipment’ class should inherit from the ‘Equipment’ class (take advantage of super)

• The class should have a constant value that sets the maximum number of days an item can be used for.

• The class should have a property to store the usage (measured in days per year that an item is used) of individual items and should also have associated functions to get and set the usage.

• At class initialisation you should be able to set the make, model, purchase date and usage of the item

• The replacementYear function should be overridden to return the replacement year (based on calculations outlined in the requirements section) 

Class - FuelPoweredEquipment

Properties


Hint
ComputerA fixed value is referred to as a constant value. A constant in Algebra is a number, although it may also be a letter such as a, b, or c for a given integer. x+2=10, for example, where 2 and 10 are constants. Natural numbers, whole numbers, real numbers, integers, and decimal numbers are examples of constants....

Know the process

Students succeed in their courses by connecting and communicating with
an expert until they receive help on their questions

1
img

Submit Question

Post project within your desired price and deadline.

2
img

Tutor Is Assigned

A quality expert with the ability to solve your project will be assigned.

3
img

Receive Help

Check order history for updates. An email as a notification will be sent.

img
Unable to find what you’re looking for?

Consult our trusted tutors.

Developed by Versioning Solutions.