Question: please help me in java code thanks Person -name:String -age:int +Person(name:String,age:int) +getAge():int +getName():String Car -speed:double -engine Type:String -driver:Person +Car(drv:Person, eng:String) +getSpeed():double +getDriver:Person +getEngine Type():String +accerelate(amount:double):void

 please help me in java code thanks Person -name:String -age:int +Person(name:String,age:int)

+getAge():int +getName():String Car -speed:double -engine Type:String -driver:Person +Car(drv:Person, eng:String) +getSpeed():double +getDriver:Person +getEngine

Type():String +accerelate(amount:double):void Question 2 (2 points) Consider the dealerCars array that is

full of references to Car objects. Write Java code to count how

please help me in java code thanks

Person -name:String -age:int +Person(name:String,age:int) +getAge():int +getName():String Car -speed:double -engine Type:String -driver:Person +Car(drv:Person, eng:String) +getSpeed():double +getDriver:Person +getEngine Type():String +accerelate(amount:double):void Question 2 (2 points) Consider the dealerCars array that is full of references to Car objects. Write Java code to count how many cars in the array are with engine type v6. Question 3 (3 points) Consider the dealerCars array that is full of references to Car objects. Write Java code to accelerate all cars with speed less than 40 by 10. Question 4 (3 points) Consider the dealerCars array that is full of references to Car objects. Write Java code to print the name of the youngest driver. Assume there are no two driver with the same age

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!