ArrayLists II Project
Part I: Coding
In this assignment, you will write an OOP program to calculate the average category, pressure, and wind
speed of Atlantic hurricanes that have occurred within a given year range. Also, you will tally the number
of storms in each category according to the Saffir-Simpson scale.
1. Create a new project folder called ArrayLists II Project in the Mod06 Assignments folder.
2. Download the [Link] as starter code for your project.
3. Download the [Link] object class and the [Link] file to the new project.
4. Examine the text file to become familiar with the information it contains. The name, pressure
(mb), wind speed (kts), month, and year have been provided.
5. Write your tester class. Document each section of code. Use for-each loops and traditional for
loops where they are appropriate.
6. Review the code in the starter program that reads all the data from the text file and stores it in
arrays.
7. Convert the wind speed from knots to miles per hour.
8. The category of each storm is not provided. Use the Saphir-Simpson Wind Speed Scale to
determine the category of each storm and assign it to an array.
9. Using the newly assigned arrays, create an ArrayList of Hurricane objects.
10. Ask the user to provide a range of years. Use this range to create the output. Ensure the user
picks the years for which you have data.
11. Calculate the average for the category, wind speed, and pressure for the given year range.
12. Use the Integer.MIN_VALUE and Integer.MAX_VALUE constants. Do not use
Java's max() or min() methods.
13. Print the results in a well-formatted, user-friendly fashion.
1. Complete the toString() method in the Hurricane object class.
2. String data should be left justified.
3. Numeric data needs to be aligned on the decimal point.
4. Use the sample below as a guide.
Saphir-Simpson Hurricane Wind Scale: Scale used to categorize hurricanes.
Wind Speed Category
74–95 mph 1
96–110 mph 2
111–129 mph 3
130–156 mph 4
157 mph or higher 5
Copyright © by Florida Virtual School. All rights reserved. Florida Virtual School, FLVS, and are registered trademarks of
Florida Virtual School, a public school district of the State of Florida.
Example Output
Part II: PMR
Using a word processing or text editing program of your choice, complete a PMR with the following
reflections:
o What went well with your program.
o What you struggled with in your program.
o What you would do differently in the future.
Part III: What to Submit
Submit the following to your instructor:
1. The .java file for your program
2. A .txt file (text file) with your program code
a. Copy your program code from BlueJ and paste it into a text file like Notepad or Notes.
b. Save your file using the same name as your program.
3. A document with your PMR
Copyright © by Florida Virtual School. All rights reserved. Florida Virtual School, FLVS, and are registered trademarks of
Florida Virtual School, a public school district of the State of Florida.