Question: CIST 2372 Programming Project: Country List Manager (Chapters 15-16) Create a Java Application with ANT named YourInitials Programming Project 1 Review Chapter15Ex1 Create a

CIST 2372 Programming Project: Country List Manager (Chapters 15-16) Create a JavaApplication with ANT named YourInitials Programming Project 1 Review Chapter15Ex1 Create a

CIST 2372 Programming Project: Country List Manager (Chapters 15-16) Create a Java Application with ANT named YourInitials Programming Project 1 Review Chapter15Ex1 Create a comment on line 1 with Your Name, Date and Project Name for each separate class Create comments for all lines of code specified. All variables names should begin with your initials with the exception of Console variables. Country List Manager COMMAND MENU 1 - List countries 2 3 4 - Add a country - Delete a country Exit Enter menu number: 1 Canada United States Mexico Enter menu number: 2 Enter country: Thailand This country has been saved. Enter menu number: 1 Canada United States Mexico Thailand Enter menu number: 3 Goodbye. Specifications This program should have at least 4 classes: YourInitials CountriesApp YourInitials_CountryIO YourInitials Console YourInitials NoSuchCountryException The YourInitials_CountriesApp will contain the main()method, code to display the menu, as well as code to call the methods from the other classes. The YourInitials_CountryIO Store the list of countries in a text file named YourInitials countries.txt This class will contain three methods: public ArrayList getCountries() public boolean saveCountries (ArrayList YourInitials_Countries) private void checkFile() If the countries.txt file doesn't exist, the YourInitials_CountriesIO class should create it. This class should use buffered I/O streams, and it should close all I/O streams when they're no longer needed. The Your_Initials_NoSuchCountryException class that can store a message. If the deleteCountry() method can't find the country it should throw a CountryNotFoundException with a message that says "This country is not in the list." Modify the code for the application so it catches the CountryNotFoundException Use the YourInitials_Console class presented in chapter 7 or an enhanced version of it to get and validate the user's entries.

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 Programming Questions!