In the Meteorological institute at Ruritania, one can find the following at Shiaho Railway Station in 2013


• In May 22 days with rainfall totaled 89 mm in that month
• In June 1822 days with rainfall totaled 127 mm in that month
• In Jule 8 days with rainfall totaled 19 mm in that month

Write a Java program that in some variable you write information the above information and that calculate in other variables and write onto the screen the following 3 information (with suitable text in front of the numbers)

a. How much rain was there in al in the summer of 2013(may+june+july) in Ruritania
b. How much on the average did it rain in the summer of 2013 in Ruritania
c. The normal rainfall in an average July at Shiaho Railway Station is 81mm. How much percentage of the normal rainfall did it rain in the month of July in 2013?

You shall write a Java program, compile it, and make sure that it calculates the right values( check this by doing this by hand calculation)


Tips: Remember that you will use java keyword int if you will declare a whole number and the Java keyword double if you will need a floating number and that division by two whole numbers gives a whole number which is an approximation ( truncated) to give a whole number which may not be the one you want.

To solve this problem, we can write a Java program that stores the rainfall data in variables, performs calculations, and prints the results. Here's an example solution:

```java
public class RainfallCalculator {
public static void main(String[] args) {
// Rainfall data in mm
int mayRainfall = 89;
int juneRainfall = 127;
int julyRainfall = 19;

// Calculate total rainfall in the summer (May + June + July)
int summerRainfall = mayRainfall + juneRainfall + julyRainfall;
System.out.println("Total rainfall in the summer of 2013 in Ruritania: " + summerRainfall + " mm");

// Calculate average rainfall in the summer
double averageRainfall = (double) summerRainfall / 3;
System.out.println("Average rainfall in the summer of 2013 in Ruritania: " + averageRainfall + " mm");

// Calculate the percentage of normal rainfall in July
int normalJulyRainfall = 81;
int percentageOfNormalRainfall = (julyRainfall * 100) / normalJulyRainfall;
System.out.println("Percentage of normal rainfall in July 2013: " + percentageOfNormalRainfall + "%");
}
}
```

In this program, we declare variables to store the rainfall data for May, June, and July. We then perform the necessary calculations to answer the three questions and print the results.

The `summerRainfall` variable calculates the total rainfall in the summer by adding up the rainfall for each month.

The `averageRainfall` variable calculates the average rainfall in the summer by dividing the `summerRainfall` by the number of months (3 in this case). We cast `summerRainfall` to a `double` to ensure that the division gives a floating-point result.

The `percentageOfNormalRainfall` variable calculates the percentage of normal rainfall in July by dividing the actual rainfall in July (`julyRainfall`) by the normal July rainfall (`normalJulyRainfall`), multiplying it by 100, and rounding the result to an integer.