Highlights
Task
Background:
‘Green Guard’ is a garden maintenance company that is growing quickly. The company is struggling to keep track of all their equipment and have engaged you to develop a program to assist them with identifying when their equipment needs to be replaced.
‘Green Guard’ has three categories of equipment:
The program will need to be able to manage:
Requirements:
In terms of when equipment needs to be replaced, that depends on the type of equipment:
Replacement Year = Length of Warranty + Purchase Year i.e. for a battery powered item with a warranty of 2 years purchased in 2022
Replacement Year = 2 + 2022
Replacement Year = 2024
The number of days that a piece of equipment is used in a year is approximated to determine when it should be replaced using the following formula:
Replacement Year = Maximum Days / Days Usage Per Year + Purchase Year i.e. for a fuel powered item that is used approximately 100 days in a year purchased in 2022
Replacement Year = 500 / 100 + 2022
Replacement Year = 2027
Replacement Year = Maximum Lifespan * Durability Factor + Purchase Year i.e. for a standard item with a durability of 0.6 purchased in 2022
Replacement Year = 5 * 0.6 + 2022
Replacement Year = 2025
Replacement years should always be rounded up.
Tasks:
Task 1 – Creation of NetBeans Project.
You are given a project folder “xxx_Surname_CSE1IOX_Assessment_1” with a project named ‘ReplacementTest’ as a starting point. The class ‘ReplacementTest’ is the main class. The aim of this class is to enable testing to determine if all aspects of the program are working as expected.
You can use it to run testing as you develop your project and also once it is complete.
In the name of the Project Folder:
- you should replace the String 'xxx' with your Student ID
- you should replace the String 'Surname' with your surname.
Task1 – Creation of Abstract Equipment Class.
You have determined that the program would be best managed using an abstract class as a starting point.
The Equipment abstract class will feature standard properties and methods that are common between all equipment categories.
You will need to create the abstract class ‘Equipment’ in the java file ‘Equipment’ as outlined below:
Task 2 – Creation of Battery Powered Equipment Class.
You are to create a class named ‘BatteryPoweredEquipment’ in the java file ‘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:
Task 3 – Creation of Fuel Powered Equipment Class.
You are to create a class named ‘FuelPoweredEquipment’ in the java file ‘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:
Task 4– Creation of Standard Equipment Class.
You are to create a class named ‘StandardEquipment’ in the java file ‘StandardEquipment’. This class is designed to keep track of the replacement of standard (non-powered) equipment such as rakes, brooms and shovels.
You will need to create the class as outlined below:
Task 5 – Testing Using Replacement Testing Class. This class should have already been created as part of Task 1.
As part of the ‘main’ method of this class you should:
Task 6 - Exceptions.
You will need to run some checks on the validity of data been entered. It is expected that the program will throw an exception in the following circumstances:
You must have a catch block that catches these exceptions and displays an appropriate error message. (You can use the getMessage method of the Throwable class to achieve this) You only need to alert the user to there being an error with the entered data. You do not need to manage this in any other way at this point.
Task 7 - Comments.
Ensure you include appropriate comments in your code including:
This CSE1IOX-IT/Computer Science Assignment has been solved by our IT/Computer Science Expert at My Uni Paper. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing Style. Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turn tin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.