Question: Store class is given. In Java show the out put Write a method in the Store class called averageCustomer which should return an int representing

Store class is given. In Java show the out put  Store class is given. In Java show the out put Write
a method in the Store class called averageCustomer which should return an

Write a method in the Store class called averageCustomer which should return an int representing Age0 the average age of all Customer objects in the store. Test your code by appending the following line to the end of the StoreTestProgram:- You should get a result of 26 Find average Customer age System out.println("InAverage age of customers: Walmart averagecustomerAge

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!