Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started