Question: Part II. (80 pts.) Write a program to solve the following problem. Name the Java program A5YourName.java (use your own name) and upload this file
Part II. (80 pts.) Write a program to solve the following problem. Name the Java program A5YourName.java (use your own name) and upload this file to Blackboard Assignment #5 link.
File weather.txt on Blackboard contains a date followed by an unknown number of lines of weather data listing a town name from three sites (Bangor, Brewer, or Orono), wind speed (mph), wind direction, temperature (Fahrenheit) and name of reporter. All entries are from the same month but do not assume the data set will always be for February (as in this particular data set). Names contain at least two parts separated by a blank. Assume no internal blanks in names. 
Methods:
Code should use the following methods placed in the main application. Use of class-level variables is not allowed; instead practice calling the methods and pass the arguments to the parameters. Do not change the methods in any way; your task is to implement the method, honoring the POST comment. Be sure to include PRE/POST comments in your code. You do not need to check that the PRE comment is honored, as this code assumes valid data in the file.
public static String monthName(String date)
// PRE: date is in form mm/dd/yy
// POST: return the name of the month (January, February, ...)
public static String reporterCode (String firstname, String lastname)
// POST: return code of first letter or first name followed by first letter of last name
public static double chillFactor(double v, double t)
//POST: return the wind chill index of velocity v (miles/hr) and t (Fahrenheit)
Processing: Produce the following output . Use field widths with floating point numbers formatted to two decimals. Code should work for any valid nonempty data set; do not assume each data set contains dates for any particular month. Reporter code is the first letter of the first name followed by first letter of the last name. Use your name in output. Report the month name in the line above the statistics.

I'm struggling writing the code for this assignment, please help.
I believe the delimiter is a "/" . so it would probably look like use.Delimiter("/")
weather.bt Notepad File Edit Format View Help 02/01/19 Bangor Brewer Orono Brewer Brewer Orono Orono Brewer 2.5 4.1 3.9 2.9 2.2 2.6 2.9 2.2 2.9 3.3 2.8 4.0 3.9 2.9 2.7 2.5 2.8 2.4 2.7 3.6 27.0 Paul Smith 28.9 Susan Spellman 27.1 Tom Houson 29.5 Mike Conway 27.2 Penny Thomas 28.9 Laurel Penn 27.9 Xang Xao 27.1 Jared Washington 28.2 Opal Tines 29.0 Kaitlin Wallis 28.0 Pat Swensen 27.9 Steve Sawyer 28.1 Tina Adley 27.7 Miki Landau 26.9 Pavel Kovor 27.9 Lindsey Door 26.9 Xavier Davis 28.1 Maria Lopez 28.0 Gunter Hood 27.6 Kate Mann NW NW NW rewer Bangor Bangor Orono Bangor Bangor Orono Bangor Bangor Bangor Orono Orono NW NW Formula for wind chill Wind ChillF 35.740.6215T - 35.75V016 where 0.4275V06 T- Air Temperature (F) V Wind Speed (mph) eather Watch by Your Name Town Bangor Brewer Orono Brewer Brewer Orono rono Brewer Brewer Bangor Bangor Orono Bangor Bangor Orono Bangor Bangor Bangor Orono Orono Wind Speed Direction Temp (F)Wind Chill Reporter 2.50 4.10 3.90 2.90 2.20 2.60 2.90 2.20 2.90 3.30 2.80 27.00 28.90 27.10 29.50 27.20 28.90 27.90 27.10 28.20 29.00 28.00 27.90 28.10 27.70 26.90 27.90 26.90 28.10 28.00 27.60 24.49 24.38 22.54 26.64 25.28 26.44 24.83 25.17 25.17 25.50 25.10 23.34 23.69 24.61 24.03 25.50 23.87 25.90 25.27 23.49 PS TH MC PT LP JW OT KW PS 3.90 2.90 2.70 2.50 2.80 2.40 2.70 3.60 TA PK GH KM February Readings: Average Temperature: 27.90 Maximum Temperature: 29.50 Minimum Temperature: 26.90 Number of readings: Bangor Brewer Orono weather.bt Notepad File Edit Format View Help 02/01/19 Bangor Brewer Orono Brewer Brewer Orono Orono Brewer 2.5 4.1 3.9 2.9 2.2 2.6 2.9 2.2 2.9 3.3 2.8 4.0 3.9 2.9 2.7 2.5 2.8 2.4 2.7 3.6 27.0 Paul Smith 28.9 Susan Spellman 27.1 Tom Houson 29.5 Mike Conway 27.2 Penny Thomas 28.9 Laurel Penn 27.9 Xang Xao 27.1 Jared Washington 28.2 Opal Tines 29.0 Kaitlin Wallis 28.0 Pat Swensen 27.9 Steve Sawyer 28.1 Tina Adley 27.7 Miki Landau 26.9 Pavel Kovor 27.9 Lindsey Door 26.9 Xavier Davis 28.1 Maria Lopez 28.0 Gunter Hood 27.6 Kate Mann NW NW NW rewer Bangor Bangor Orono Bangor Bangor Orono Bangor Bangor Bangor Orono Orono NW NW Formula for wind chill Wind ChillF 35.740.6215T - 35.75V016 where 0.4275V06 T- Air Temperature (F) V Wind Speed (mph) eather Watch by Your Name Town Bangor Brewer Orono Brewer Brewer Orono rono Brewer Brewer Bangor Bangor Orono Bangor Bangor Orono Bangor Bangor Bangor Orono Orono Wind Speed Direction Temp (F)Wind Chill Reporter 2.50 4.10 3.90 2.90 2.20 2.60 2.90 2.20 2.90 3.30 2.80 27.00 28.90 27.10 29.50 27.20 28.90 27.90 27.10 28.20 29.00 28.00 27.90 28.10 27.70 26.90 27.90 26.90 28.10 28.00 27.60 24.49 24.38 22.54 26.64 25.28 26.44 24.83 25.17 25.17 25.50 25.10 23.34 23.69 24.61 24.03 25.50 23.87 25.90 25.27 23.49 PS TH MC PT LP JW OT KW PS 3.90 2.90 2.70 2.50 2.80 2.40 2.70 3.60 TA PK GH KM February Readings: Average Temperature: 27.90 Maximum Temperature: 29.50 Minimum Temperature: 26.90 Number of readings: Bangor Brewer Orono
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
