Question: using c++ Write a program following the instructions in Problem P5.1 Implement a loop in which the user is prompted to enter country information. Continue
using c++



Write a program following the instructions in Problem P5.1 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.5_3.cpp Sample input-output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
