Question: Instructions: Write an OOP program to calculate the average category, pressure, and wind speed of Atlantic hurricanes that have occurred between a given year range

Instructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculateInstructions: Write an OOP program to calculate
Instructions: Write an OOP program to calculate the average category, pressure, and wind speed of Atlantic hurricanes that have occurred between a given year range Also, tally the number of storms in each category according to the Saffir-Simpson scale. . Create a new project folder called Challenge Program in the Mod07 Assignments folder. Download the HurricaneTester.java as starter code for your project. Download the Hurricane.java object class and the HurricaneData.txt file to the new project. 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. Write your tester class. Document each section of code. Use for-each loops and traditional for loops where they are appropriate. Review the code in the starter program that reads all the data from the text file and stores it in arrays. Convert the wind speed from knots to miles per hour. The category of each storm is not provided. Use the SaphirSimpson Wind Speed Scale to determine the category of each storm and assign to an array. Using the newly assigned arrays, create an ArrayList of Hurricane objects. $09>'.'.0'.4>9'N-' _. O . Ask the user to provide a range of years. Use this range to create the output. Ensure the user picked years for which you have data. _. _A . For the given year range, calculate the average for category, wind speed, and pressure. . Use the Integer.MIN_VALUE and Integer.MAx_VALUE constants. Do not use Java's max() or min () methods. _L_L CON . Print the results in a well formatted, user-friendly fashion. Complete the tostzing () method in the Hurricane object class, String data should be left justified. Numeric data needs to be aligned on the decimal point. Use the sample below as a guide. Saphir-Simpson Hurricane Wind Scale: Scale used to categorize hurricanes. Wind Speed Category 74-95 mph 96-110 mph 2 111-129 mph 3 130-156 mph 4 157 mph or higher 5 Expected Output: Your program's output should be similar to the following screen shot. Due to the amount of information, only the top and bottom of the output generated is shown in this image. Hurricanes 2003 - 2005 Year Hurricane Category Pressure (mb) Wind Speed (mph) 2003 Claudette 979 92. 06 2003 Danny 1000 74.80 2003 Erika 986 74.80 2003 Fabian 939 143.85 2003 Isabel 915 166.86 2003 Juan 969 103.57 2003 Kate 952 126.59Hurricanes 2003 - 2005 Year Hurricane Category Pressure (mb) Wind Speed (mph) 2003 Claudette 979 92.06 2003 Danny 1000 74.80 2003 Erika 986 74.80 2003 Fabian 939 143.85 2003 Isabel 915 166.86 2003 Juan 969 103.57 2003 Kate 952 126.59 2004 Alex 957 120.83 2004 Charley 941 149. 60 2005 Stan 977 80.55 2005 Vince 988 74.80 2005 Wilma HWUHH 882 184.12 2005 Beta 962 115.08 2005 Epsilon 981 86.31 Average: 2.7 955. 4 117.49 Minimum: 882 74.80 Maximum: 1000 184.12 Summary of Categories: Cat 1: 12 Cat 2: 3 Cat 3: 5 Cat 4: 5 Cat 5: 6Comments include name, date, and purpose of program. Arrays used correctly. ArrayLists and methods used correctly. Hurricane objects instantiated correctly. Collect input in a user-friendly manner. Enhanced/Traditional loops correctly used. Decision statement(s) correctly used. Integer constants used correctly Minimum and maximum values accurately determined. Arithmetic statements correctly written. Output precisely formatted horizontally and vertically using the toString() method. Output is correct and user-friendly. Documentation throughout program. Enhanced/Traditional loops correctly used. Decision statement(s) correctly used. 2 Integer constants used correctly 2 Minimum and maximum values accurately determined. 2 Arithmetic statements correctly written. 2 Output precisely formatted horizontally and vertically using the toString() method. 2 Output is correct and user-friendly. 2 Documentation throughout program. 1 No compiler or runtime errors. 2 Thoughtful PMR submitted. 2 Total 30 El Print \f\f2006 Sep 985 75 Isaac 2007 Aug 905 150 Dean 2007 Aug 929 150 Felix 2007 Sep 985 80 Humberto 2007 Sep 988 65 Karen 2007 Sep 990 70 Lorenzo 2007 Oct 980 70 Noel 2008 Jul 952 110 Bertha 2008 Jul 963 85 Dolly 2008 Aug 941 135 Gustav 2008 Aug 977 75 Hanna 2008 Sep 935 125 Ike 2008 Sep 984 70 Kyle 2008 Oct 958 115 Omar 2008 Nov 970 85 Paloma 2009 Aug 943 115 Bill 2009 Sep 958 105 Fred 2009 Nov 975 90 Ida 2010 Jun 946 95 Alex 2010 Aug 942 115 Danielle 2010 Aug 927 125 Earl 2010 Sep 924 135 Igor 2010 Sep 948 120 Julia 2010 Sep 956 110 Karl 2010 Sep 982 75 Lisa 2010 Oct 976 75 Otto 2010 Oct 981 90 Paula 2010 Oct 977 85 Richard 2010 Oct 989 65 Shary 2010 Oct 985 85 Tomas 2011 Aug 942 105 Irene 2011 Aug 942 120 Katia 2011 Sep 983 70 Maria 2011 Sep 994 65 Nate 2011 Sep 940 120 Ophelia 2011 Sep 976 80 Philippe 2011 Oct 966 100 Rina 2012 Jun 974 75 Chris 2012 Aug 973 85 Ernesto 2012 Aug 965 95 Gordon 2012 Aug 965 70 Isaac 2012 Aug 970 90 Kirk 2012 Aug 968 70 Leslie 2012 Sep 964 100 Michael 2012 Sep 978 80 Nadine 2012 Oct 969 80 Rafael 2012 Oct 940 100 Sandy 2013 Sep 979 80 Humberto 2013 Sep 983 75 Ingrid2014 Jul 973 85 Arthur 2014 Aug 998 70 Bertha 2014 Aug 965 75 Cristobal 2014 Sep 955 105 Edouard 2014 Oct 983 70 Fay 2014 Oct 940 125 Gonzalo 2015 Aug 960 110 Danny 2015 Aug 986 75 Fred 2015 Sep 931 135 Joaquin 2015 Nov 980 75 Kate 2016 Sep 981 80 Hermine 2016 Oct 963 85 Matthew 2017 Aug 962 110 Gert 2017 Aug 937 130 Harvey 2017 Sep 914 175 Irma 2017 Oct 981 90 Nate 2018 Sep 937 150 Florence 2018 Sep 919 160 Michael 2019 Jul 993 72 Barry 2019 Sep 913 180 Dorian 2019 Sep 950 125 Humberto* @purpose: Hurricane Object Class * @author APCS Team @version FLVS 2020 * */ public class Hurricane private String name, month; private int year; private int cat; private int pressure; private double windspeed; / /constructor - all private instance variables initialized public Hurricane (int y, String n, String m, int c, int p, double w) { this . year = y; this . name = n; this . month = m; this . cat = c; this . pressure = p; this . windspeed = w; //accessor for year public int getYear( ) { return year; / /accessor for name public String getName ( ) { return name; //accessor for month public String getMonth( ) { return month; //accessor for category public int getCat ( ) { return cat; //accessor for pressure public int getPressure( ) { return pressure; //accessor for windspeed public double getWindspeed ( ) { return windspeed; / /mutator for year public void setYear(int y) { year = y; //mutator for name public void setName (String n) { name = n;\f

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!