Question: java program that allows the user to enter packages' names followed by their weights. Use an array of String to store packages' names and an

java program that allows the user to enter packages' names followed by their weights. Use an array of String to store packages' names and an array of double to store their weights. The program then outputs the following information (assume that there are 10 packages total):

- Each package's name and the weight

- Highest weight

- The names of all the packages having the highest weight

- Average weight

- The names of all the packages whose weights are less than the average

- The names of all the packages whose weights are greater than or equal to the average

It is required to use array for this assignment (do not use ArrayList).

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!