Question: 1 - Rainfall Map Createa two-dimensional array that stores rainfall amounts for a given month.Your program must: Prompt the user for the height and width
1 - Rainfall Map
Createa two-dimensional array that stores rainfall amounts for a given month.Your program must:
- Prompt the user for the height and width of the array.
- Prompt the user for the minimum and maximum rainfall values.
- Randomly assign a rainfall value within the user-specified range to each position of the array.
- Display the two-dimensional array as a matrix
- Calculate and display the average rainfall for the entire array.
2 - Parallel ArrayLists
Writea program that repeatedly prompts the user to add a name and an age.Every time the user enters a name and age, it must:
- Store the name and age to ArrayLists (one for names and one for ages).
- Display all of the names
- Display theaverageof all of the ages.
The program must terminate when the user types "QUIT" instead of a name.
I need help figuring out how to code this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
