Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

it's in java. can you please add comments for better understanding? thank you Create a fleet of tractors. Add a new abstract class named Asset

it's in java. can you please add comments for better understanding?
thank you image text in transcribed
Create a fleet of tractors. Add a new abstract class named Asset to your project. All tractors are Assets. All Assets have a method called Valuation(). Implement the valuation method for all tractors using the following formulas. tractors valuation = 50000 + 100 * rate loader valuation = 50000 + tractor valuation + 5000 * bucket size harvester valuation = 100000 + tractor valuation + 10000 * trailer size Then........ Create a new application class called TestFleet. Use an array to create a fleet of tractor objects. Populate the array with 3 tractors, 3 loaders and 3 harvesters. Create a method called displayFleetProfit(Tractor fleet[]). This method will have a parameter for the array of Tractors and use a loop to display the information about the tractors in a tabular format. Use a for loop display the tractor id number, the Valuation and the Rental Profit. Use the instanceof operator to record separate totalprofits for Loaders and Harvesters. Include a title line with the Company name and column headings. Display the total profits as well as the Harvester and Loader profit calculations at the bottom of the report

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_step_2

Step: 3

blur-text-image_step3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

What are your options?

Answered: 1 week ago

Question

Compute the partial derivative: f(x, y) = sin(x-5y) fy(0,T) = 5

Answered: 1 week ago