You are to create a class named ‘BatteryPoweredEquipment’
Ask Expert

Be Prepared For The Toughest Questions

Practice Problems

You are to create a class named ‘BatteryPoweredEquipment’

Task 2 – Creation of Battery Powered Equipment Class

You are to create a class named ‘BatteryPoweredEquipment’. This class is designed to keep track of the replacement of battery powered equipment such as Edge Trimmers and Brush Cutters.

You will need to create the class as outlined below:

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

• The class should have a property to store the warranty (measured in years) 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 warranty of the item

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

Class - BatteryPoweredEquipment

Properties


Hint
ComputerA warranty is a promise made by a vendor that a damaged product will be fixed or replaced within a certain amount of time. A guarantee is a promise made by a vendor that a product will fulfill specific quality or performance criteria. If that isn't the case, it will be fixed or replaced....

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.