Question: JAVA You need to use the Taxable and PRSI interfaces as detailed below. 1. a. Create a Car class which has a make, model and

JAVA

You need to use the Taxable and PRSI interfaces as detailed below.

1. a. Create a Car class which has a make, model and engine size as attributes

b. Have this class implement the Taxable interface.

c. A cars tax is calculated as follows i. If the engine is less than 1000 the tax is 200

ii. If the engine is between 1000 and 2000 the tax is 900

iii. If the engine is greater than 2000 the tax is 1800

d. A car should implement the printTax() method by calculating its tax and then printing this along with the make, model and engine size.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!