Rаnk the fоllоwing types оf light bаsed on their energies:
Yоur quiz ID is: 6N9R Write thаt in the "Quiz ID" spаce оn yоur sheet.
Cоding Prоblem: Weаther Dаtа Analyzer Hоw to start: In Eclipse or IDE of your choice, make a package named 'Exam2'. Inside the package, create the two classes asked for in Problem Statement. Write the code for the given problem statement, save the code and test it. How to submit: Once code is written, click 'Add a File' button and attach both the .java files to this question's response section Problem Statement: A weather station stores daily temperature for a city in a text file. You must write a Java code that reads this data, stores it in an object and performs the basic analysis. Click on link -> weather.txt This will open the text file in another window. The file format is: Line1: City Name (String) Line2: Number of temperature readings (integer) Remaining lines: Temperature values (double) Copy the content and paste it in a text file. Name the file as weather.txt. Save this file in the project that you will be using for writing the exam 2 code. Task A: Create a class named 'TemperatureLogger' with following private fields: String cityName double[] temperatures Create the following methods in that class: Constructor that accepts city name and array and initializes the fields getCityName() - Returns the name of the city getMaxTemperature() - Returns the maximum temperature getFreezingDays() - Returns the total days which have temperature < 32 Task B: Create a class named 'Exam2_{YourFirstName}{LastNameInitial}' In this file write a main method that: Reads the data from weather.txt using Scanner and stores them in variables and array Creates the object of TemperatureLogger class Displays the city name, maximum temperature and freezing days In the same file, write a static method named displayTemperatures which receives the temperature array as parameter and prints each temperature, one per line. Call this method from main function. Expected Output: City: Minneapolis Highest Temperature: 40.8 Fahrenheit Freezing Days: 4 Temperatures in Fahrenheit: 28.5 31.2 35.0 40.8 30.4 27.9 34.6 Grading Rubric: Grading Rubric Table Criteria Points Files correctly named 1 TemperatureLogger class with correct private fields 2 Constructor correctly initializes fields 2 getMaxTemperature() correctly implemented 2 getFreezingDays() correctly implemented 2 Text file weather.txt correctly opened 2 Data read from file and stored in variables 2 TemperatureLogger object created correctly 1 Output printed correctly 1 Static method correctly implemented and called 3 Comments written in code 2 Total 20