1 Ask the user how many numbers they want to add.2 Allocate an ArrayList that can contain Integer data. Name this varia

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
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

Post by answerhappygod »

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!
Post Reply