Question: hi please help me for my java exam write a class called MotorSales. the class accepts an array of numbers representing the sale of each

hi please help me for my java exam

write a class called MotorSales. the class accepts an array of numbers representing the sale of each car. apart from the constructor, write two mutator methods;

one called sum, that calculates the total sales

the other called findLowest, that finds the lowest sale amount

also write an accessor method that returns the total amount in sales

you are responsible for declaring the appropriate variables in the class

do not write a test class none is necessary

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 Mathematics Questions!