Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Data Structures & Algorithms code java A program is required to do the following: . Prompt for and accept for a list of countries, the
Data Structures & Algorithms
code java
A program is required to do the following: . Prompt for and accept for a list of countries, the name of the country, the population, and the gross national income (GNI). Store this information in a finite list. Compute and store the per capita income (PCI) for each country. This is found by dividing the GNI by the population. Sort the countries based on per capita income in ascending order) Print all the values, including the per capita for all the countries (in ascending order) Identify the country with the highest per capita income Identify the country with the lowest per capita income Determine and print the average per capita income and the standard deviation for the countries listed. . Continue processing until the user quits. 1. Develop the program plan and pseudo code for this problem. Your pseudo code must include plans for a Country class as well as a CountresMonitor class (your controller class). la. Your Country class must include the following: . UML diagram showing data items and methods that define a Country object. A constructor A method to modify a Country object based on another Country object. A method to allow the user input data for a Country object. A method to construct a string that fully describes the current Country object and returns it to the calling statement [08] [04] [08] [08] [06] Ib. Your Countres Monitor class must include the following: . UML diagram showing data items and methods. [10] . A main method to present the user with a menu of processing options and appropriately process each option. The options include entry of information on countries, summarization of the information, displaying a sorted list, and [12] quitting processing. A method that allows entry of Country objects into the list, and invokes other methods to assist with the required [10] processing. [08] A method to evaluate the standard deviation and return it to the calling statement. A method that determines and stores the Country object with the highest PCI, and the Country object with the [06] lowest PCL [06] A method to display the results (summary) of the analysis. [10] A method to sort the countries in ascending order, based on the per capita income [06] A method to display the unsorted list [10] A method to find and display a particular Country object in the list. [06] A method to set initialization values for subsequent analysis. [08]Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started