Page 1 of 1

Write a class to support the maintenance of a lawn mower. Just like a car engine, the oil in a gasoline-powered lawn mow

Posted: Sat May 14, 2022 4:34 pm
by answerhappygod
Write A Class To Support The Maintenance Of A Lawn Mower Just Like A Car Engine The Oil In A Gasoline Powered Lawn Mow 1
Write A Class To Support The Maintenance Of A Lawn Mower Just Like A Car Engine The Oil In A Gasoline Powered Lawn Mow 1 (34.72 KiB) Viewed 42 times
pls i need this in java
Write a class to support the maintenance of a lawn mower. Just like a car engine, the oil in a gasoline-powered lawn mower engine must be changed on a regular basis. For example for some Cars, the manufacturer recommends that the oil be changed every 3.000 miles and for others the service interval is different. A lawn mower engine also requires regular oil changes but it depends on the number of hours it is used and varies by manufacturer/model. Also, there is no device like an odometer to help you know when to change your oil. Write a class to support the oil change maintenance of lawn mower engines. Your class should support the following operations 1. Create a lawn mower engine with a defined service interval - the number of hours of operation before all change is required 2. Each time the lawn mower is used, there must be the capability to record the number of hours that the lawn mower was 3. Each times oil change is done there must be the capability to reset the counter that tracks the total number of hours used since the last one was performed 4. The owner must be able to query the number of hours used since the last oil change 5. The owner must be able to query the total number of hours used over the life of the mower. 6. The owner must be able to query whether it is time for an oil change 7. tostring) Upload all of your Java code and a sample output showing that your code works including the toString(): This question does not require a menu-based tester. If you have time, you may do 50 but it is not necessary used use the editor of