1 Ask the user how many numbers they want to add.2 Allocate an ArrayList that can contain Integer data. Name this varia
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1 Ask the user how many numbers they want to add.2 Allocate an ArrayList that can contain Integer data. Name this varia
1 Ask the user how many numbers they want to add.2 Allocate an ArrayList that can contain Integer data. Name this variable randomList3 Loop the required number of times, adding a random number between 1 and 100 to randomList.4 Using a for loop, calculate the total and the average of the values in randomList.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!