Question: Create a new Java class called AverageWeight. Create two arrays: an array to hold 3 different names and an array to hold their weights. Use

Create a new Java class called AverageWeight.
Create two arrays:
an array to hold 3 different names and an array to hold their weights.
Use Scanner to prompt for their name and weight and store in correct array.
Compute and print the average of the weights entered using printf command.
Use a loop to traverse and print the elements of each array or use Arrays class method to print.
I want the coding as java

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!