LAB211 Assignment: Title Background Program Specifications
LAB211 Assignment: Title Background Program Specifications
LAB211 Assignment: Title Background Program Specifications
Title
Write a program to manage the geographic.
Background
N/A
Program Specifications
- Develop the Country class including property and method below:
protected String countryCode;
protected String countryName;
protected float totalArea;
- Develop Country class inheritance EastAsiaCountries class and add the property:
private String countryTerrain;
Implement constructor parameter and use the super keyword to call the constructor of the class Country above.
Override display().
- Develop “ManageEastAsiaCountries” class perform the following functions:
Function details:
o User runs the program. The program prompts users to select an option.
o User selects an option, perform Function 2.
1
MENU
==========================================================================
1. Input the information of 11 countries in East Asia
2. Display the information of country you've just input
3. Search the information of country by user-entered name
4. Display the information of countries sorted name in ascending order
5. Exit
==========================================================================
Enter your choice :
2
Enter code of country:
VN
Enter name of country:
Viet Nam
Enter total Area:
331698
Enter terrain of country:
Nice
3
ID Name Total Area Terrain
4
ID Name Total Area Terrain
5
Enter the name you want to search for:
Viet Nam
ID Name Total Area Terrain
Guidelines
Student must implement methods
- addCountryInformation
- getRecentlyEnteredInformation
- searchInformationByName.
- sortInformationByAscendingOrder
in startup code.
Suggestion:
o Function 1: Add information for a country
Input:
Input:
Input:
Input: