Question: Data Structures & Algorithms code java neatbeans A program is required to do the following: Prom pt for and accept for a list of countries,

Data Structures & Algorithms

code java neatbeans

A program is required to do the following:

Prom

pt for and accept for a list of countries, the name of the country, the population, and the gross national income

(GNI).

Store this information in an array

-

list.

Compute and store the per capita income (PCI) for each country. This is found by dividing the

GNI by the population.

Display all

countries

sorted on

per capita income (in ascending order)

Display all countries in the list (unsorted)

Identify the country with the highest per capita income

Identify the country with the lowest per capita income

Deter

mine and

display

the average per capita income and the standard deviation for the countries

Find a particular country in the list

Remove items from the list

Check the size of the list

Empty the list

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!