Challenge

Project 3

1.

Here our aim is to develop an object-oriented library for maintaining records of different types of automobiles and also to track their maintenance.The basic structure of the code required to be developed has been elaborated in the assignment itself.

The code has been developed keeping all these points into consideration and enclosed herewith as the word document AutoMaintLib.

The explanation of the code is as under.

The first condition specified in the assignment is the code developed must support at least three types of car.In our case it supports Gas,Electric and Diesel cars.Secondly, make, model,year and odometer reading are included in the vehicle class in accordance with the requirement specified.Thirdly, as per the given specifications virtual method has been used to get the fuel type.The abstract class FuelVehicle has not been implemented in the program.Maintenance activities specified in this case include oil change,oil filter replacement,air filter replacement,fuel filter replacement,tyre rotation checking, troubleshooting/servicing of infotainment system,spark plug replacement,replacement of AC filters, level checking and if needed top up of clutch fluid & brake fluid,checking & monitoring of condition of belts,hoses, tyres,batteries as well as charging system for batteries and taking appropriate actions as needed.Such details have not been provided in the code.It is presumed that while updating type & quantity of spares consumed car specific maintenance activities will be updated in the system by the end user.It is also presumed that battery charging after 400 Km run and tyre rotation check after 50000Km run along with all other maintenance activities are incorporated in the function performmaintenanceactivities within the code.This is done for simplification of the code because otherwise the code developed will be further complicated.

The developed code is able to list inventory,add a vehicle, remove a vehicle and track maintenance activities which were the basic requirements of the program.

The developed code was successfully run using onlinegdb and the result can be viewed as AutoMaintLib.PNG which is also enclosed.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.