For the final take on this problem, we will use a class to solve the problem by reading the data from a text file. Prepare the text file as you wish if you can read it within your Java project. Name the 4Growth.txt. Don't forget to close the file after you finish reading it! Create a new Java Project named PopCan04. Include a Jurisdiction class according to this UML diagram: Jurisdiction -name:String -pop16:int -pop23:int +calculateChange:double You already have several pieces of its solution, the header is the same, the format specifiers are the same, now, instead of using arrays, use an Array[] or an ArrayList<> of Jurisdictions to implement the new solution. Be sure to include a method to calculate the population growth as defines in the class diagram. Since you will be reading from a file, include a FileNotFoundException and catch it by printing a message to the user: "File not Found." The rest of the solution needs an enhanced for loop to produce the table. Finish by adding the footer that you have been using all along.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

***Population of provinces and territories***
***April 4, 2023***
---------------------------------------------------------------------------
Rank Provinces and Territories Population 2023 Population 2016 Change
===========================================================================
1 Yukon 44,291 35,874 +23.46%
2 Prince Edward Island 175,766 142,907 +22.99%
3 British Columbia 5,426,742 4,648,055 +16.75%
4 Alberta 4,685,807 4,067,175 +15.21%
5 Ontario 15,485,590 13,448,494 +15.15%
6 Nunavut 40,816 35,944 +13.55%
7 Nova Scotia 1,042,922 923,598 +12.92%
8 Manitoba 1,435,382 1,278,365 +12.28%
9 New Brunswick 829,114 747,101 +10.98%
10 Saskatchewan 1,218,815 1,098,352 +10.97%
11 Northwest Territories 45,189 41,786 +8.14%
12 Quebec 8,807,385 8,164,361 +7.88%
13 Newfoundland and Labrador 532,870 519,716 +2.53%
===========================================================================
Total CANADA 39,770,689 35,151,728 +13.14%
By A. E

For the final take on this problem, we will use a class to solve the problem by reading the data
from a text file. Prepare the text file as you wish if you can read it within your Java project.
Name the 4Growth.txt. Don't forget to close the file after you finish reading it!
Create a new Java Project named PopCan04. Include a Jurisdiction class according to this UML
diagram:
Jurisdiction
-name:String
-pop16:int
-pop23:int
+calculateChange:double
You already have several pieces of its solution, the header is the same, the format specifiers are
the same, now, instead of using arrays, use an Array[] or an ArrayList<> of Jurisdictions to
implement the new solution. Be sure to include a method to calculate the population growth as
defines in the class diagram.
Since you will be reading from a file, include a FileNotFoundException and catch it by printing a
message to the user: "File not Found."
The rest of the solution needs an enhanced for loop to produce the table. Finish by adding the
footer that you have been using all along.
Transcribed Image Text:For the final take on this problem, we will use a class to solve the problem by reading the data from a text file. Prepare the text file as you wish if you can read it within your Java project. Name the 4Growth.txt. Don't forget to close the file after you finish reading it! Create a new Java Project named PopCan04. Include a Jurisdiction class according to this UML diagram: Jurisdiction -name:String -pop16:int -pop23:int +calculateChange:double You already have several pieces of its solution, the header is the same, the format specifiers are the same, now, instead of using arrays, use an Array[] or an ArrayList<> of Jurisdictions to implement the new solution. Be sure to include a method to calculate the population growth as defines in the class diagram. Since you will be reading from a file, include a FileNotFoundException and catch it by printing a message to the user: "File not Found." The rest of the solution needs an enhanced for loop to produce the table. Finish by adding the footer that you have been using all along.
Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education