Question: write a java method using array of object to calculate min, max and average price of sold cars. Array capacity defined as (ncars = 4).

write a java method using array of object to calculate min, max and average price of sold cars. Array capacity defined as (ncars = 4). Create the car class with instance variable: int carnumber, String model, double price constructor/getter/setter methods.

Create the carPrice class

Create a method to populate Array of car object

Create a method to calculate min price of cars

Create a method method to calculate max price of cars

Create a method to calculate avg price of cars

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!