Question: In JAVA please!!!!! Thank you so much! Based on the driver/test class below (WeeklyWeatherDataDriver.java) create a class called WeeklyWeatherData. Keep in mind the purpose of
In JAVA please!!!!! Thank you so much!

Based on the driver/test class below (WeeklyWeatherDataDriver.java) create a class called WeeklyWeatherData. Keep in mind the purpose of this assignment is to get you to think about Encapsulation... be sure to follow what was discussed in class and in the notes. It should fields that are NOT accessible in the driver. Let the fields be: o double[] rainfall o double[] pressure o double avgRain double maxRain should be highest day in the week O double avgPressure o double maxPressure should be highest day in the week . Program the class so that it has all the appropriate methods. o The only getters should be for avgRain, maxRain, avgPressure, and maxPressure. o The only setter should be setData() which sets both rainfall[] and pressure[] fields both at the same time. o calculateStats() should calculate avgRain, maxRain, avg Pressure, maxPressure all at once in the method. No returns
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
