Question: Task C. Sorting the list of countries Write a new program that reads the data the same way as the previous program. Then the program

Task C. Sorting the list of countries

Write a new program that reads the data the same way as the previous program. Then the program should:

Make an array to store the countries with negative relative growth.

Populate this array sorted by its population in 1960.

To do that, use the insertion sort technique:

Scan the full array of countries from the struct World, once a country with negative growth is found, insert it in the corresponding place in the sorted array.

Print these sorted entries on the screen following the format:

          ... 

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!