Answered You can hire a professional tutor to get the answer.
PROBLEM : Write a Java program that will produce the EXACT output shown at the end of the document. In addition to the Java program, you will use 2...
PROBLEM: Write a Java program that will produce the EXACT output shown at the end of the document.
1. In addition to the Java program, you will use 2 .txt files—one for input and one for output. (You might call them RainIn.txt and RainOut.txt. RainIn.txt will contain the data below. RainOut.txt will be created when the program runs and it will contain the output from your program) Read data from the input file. Use Notepad to create RainIn.txt.
2. Generate a graph that compares, on a month-by-month basis, the monthly rainfall for Kamloops for the first half of 2018 (i.e. Jan - June) versus the 30 year average rainfall for Kamloops for the same months. Include the scale and the legend as shown below.
3. Compute the totals in each case (i.e. the 2018 rainfall total for Jan. to June, and the 30 year average half-year total), and state whether 2018 was wetter or drier than average and by how much.
4. Determine which month in 2018 had the highest rainfall, and print the month, the rainfall amount and how that amount compares to the 30 year average amount for that month.
Input will consist of 6 pairs of numbers representing the 30-year average rainfall for the month and the 2018 rainfall amount for the same month. Use the exact data shown below:
3.1 5.4 ¬ January data (30 year average comes first, then 2018 data)
4.7 4.4 ¬ February data