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
Get step-by-step solutions from verified subject matter experts
