(3) Problem P5.11.
• Write a program following the instructions in Problem P5.11.
Exercise P5.11. Define a class Country thatstores the name of the country, its popula- tion, and its area.Using that class, write a program that reads in a set of countriesand prints
-
The country with the largest area
-
The country with the largest population
-
The country with the largest population density (people persquare kilometer)
• Implement a loop in which the user is prompted to entercountry information. Continue until either the user requests toquit or enters the area (or population) that is not a number orthat is non-positive (in that case print out the
PayPal Gateway not configured
PayPal Gateway not configured