Question: Using C++ and please make into a class. Write a program following the instructions in Problem P5.11. . Implement a loop in which the user

Using C++ and please make into a class.

Using C++ and please make into a class. Write a program followingthe instructions in Problem P5.11. . Implement a loop in which theuser is prompted to enter country information. Continue until either the user

Write a program following the instructions in Problem P5.11. . Implement a loop in which the user is prompted to enter country information. Continue until either the user requests to quit or enters the area (or population) that is not a number or that is non-positive (in that case print out the message Incorrect input. Exit!). Then print out the names of the country with the largest population, area and density obtained up to this point . It can happen that there are more than one country with the largest area (or population, or density). For simplicity, print out the one that appears first in the list (see the input-output sample If the input fails during the first iteration of the loop, then do not print anything besides the message 'Incorrect input. Exit! . Submit the solution as hmw-4.3.cpp. . Sample input-output

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!