Question: Define a structure named census with the following three members:- A character array city [] to store names.- A long integer to store the population
Define a structure named census with the following three members:- A character array city [] to store names.- A long integer to store the population of city.- A float member to store literacy level.Write a program to do the following:- To read the details for 5 cities randomly using an array variable.- To sort the list alphabetically.- To sort the list based on literacy level.- To sort the list based on population.- To display the sorted lists.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
