Question: The files for this week also contain a Java class file for a State Object named State.java. Your tasks for this assignment are to read

The files for this week also contain a Java class file for a State Object named State.java. Your tasks for this assignment are to read the document Notes about Arrays of Objects, then create Java software as follows: . Start a new IntelliJ Java project. . Copy the file java into the src folder so that you can use the State class in the project. Copy the data file states.txt into the project folder - the parent folder of the src folder to make it accessible to your software. . Write a main method for your software that does the following: 1. creates an array of 50 State objects 2. loads the array with the data from the data file in the appropriate properties of each object 3. prints a neatly formatted list of the states with the following on each line forming netaly formmated columns: State Population State Capital The State column has the sate's name. The population should be the population of the state, not the capital. You should use the printf() instruction to print (on the screen, as console output) the list in a way that is neatly formatted, with titles at the top of the list. The specific format is up to you, but it should be neat and readable. The use of printf, which works almost the same in C++ as it does in Java, is described starting on page 19 in Lesson 4.4 of Chapter 4, which is included with the files from Week 8 and for this week. In addition to the document Notes about Arrays of Objects, Chapters 8 and 9 from Week 9 also contain information about objects in Java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
