(Solved) : Write Java Program Following Create Arraylist Type Integer B Store 20 Random Integer Numb Q42728709 . . .

course – Computer Programming -Java

Write a Java Program that do the following: A. Create an ArrayList of type Integer B. Store 20 random integer numbers in the

Typical run 1: COM [2, 8, 93, 22, 31, 58, 3, 49, 15, 25, 48, 91, 12, 99, 55, 71, 45, 85, 5, 93] Average: 45.0 Typical run 2:

Write a Java Program that do the following: A. Create an ArrayList of type Integer B. Store 20 random integer numbers in the AcayList usinga focoon. The random numbers range should be between 1 and 100. C. Print the ArrayList using a print statement. D. Find and print the average value of the entire Acaylist E. Run the program multiple times showat least 4screenshot ofthe outputs F. Write your observation on the value of average. Note: Write your code in here as a text, a screenshot of the code will not be accepted. Typical run 1: COM [2, 8, 93, 22, 31, 58, 3, 49, 15, 25, 48, 91, 12, 99, 55, 71, 45, 85, 5, 93] Average: 45.0 Typical run 2: Code ogona da b p 10. 3.20124.12 (36, 67, 10, 9, 26, 40, 81, 77, 21, 92, 38, 66, 91, 91, 50, 75, 17, 70, 88, 72) Average: 55.0 Typical run 3 e l pollici 20 . 122015 PM [51, 28, 15, 98, 80, 31, 85, 92, 41, 21, 77, 22, 37, 53, 22, 52, 4, 21, 53, 45] Average: 46.0 Typical run 4: d oposu w1, 2018 [76, 70, 81, 38, 1, 39, 72, 52, 22, 45, 54, 86, 17, 29, 89, 61, 3, 90, 13, 88) Average: 51.0 Show transcribed image text Write a Java Program that do the following: A. Create an ArrayList of type Integer B. Store 20 random integer numbers in the AcayList usinga focoon. The random numbers range should be between 1 and 100. C. Print the ArrayList using a print statement. D. Find and print the average value of the entire Acaylist E. Run the program multiple times showat least 4screenshot ofthe outputs F. Write your observation on the value of average. Note: Write your code in here as a text, a screenshot of the code will not be accepted.
Typical run 1: COM [2, 8, 93, 22, 31, 58, 3, 49, 15, 25, 48, 91, 12, 99, 55, 71, 45, 85, 5, 93] Average: 45.0 Typical run 2: Code ogona da b p 10. 3.20124.12 (36, 67, 10, 9, 26, 40, 81, 77, 21, 92, 38, 66, 91, 91, 50, 75, 17, 70, 88, 72) Average: 55.0 Typical run 3 e l pollici 20 . 122015 PM [51, 28, 15, 98, 80, 31, 85, 92, 41, 21, 77, 22, 37, 53, 22, 52, 4, 21, 53, 45] Average: 46.0 Typical run 4: d oposu w1, 2018 [76, 70, 81, 38, 1, 39, 72, 52, 22, 45, 54, 86, 17, 29, 89, 61, 3, 90, 13, 88) Average: 51.0

Expert Answer


Answer to Write a Java Program that do the following: A. Create an ArrayList of type Integer B. Store 20 random integer numbers in…

Leave a Comment

About

We are the best freelance writing portal. Looking for online writing, editing or proofreading jobs? We have plenty of writing assignments to handle.

Quick Links

Browse Solutions

Place Order

About Us

× How can I help you?