Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions