Question: A file contains a set of records describing countries. Each record consists of the name of the country, its population, and its area. Suppose your
A file contains a set of records describing countries. Each record consists of the name of the country, its population, and its area. Suppose your task is to write a program that reads in such a file and prints
• The country with the largest area.
• The country with the largest population.
• The country with the largest population density (people per square kilometer).
Think through the problems that you need to solve. What classes and methods will you need? Produce a set of CRC cards, a UML diagram, and a set of javadoc comments.
Step by Step Solution
3.33 Rating (159 Votes )
There are 3 Steps involved in it
ANSWER CRC cards Class Country Responsibilities Store name of country Store population of country Store area of country Calculate population density o... View full answer
Get step-by-step solutions from verified subject matter experts
