Must be in JAVA. Please Attached text code and output Create a new project and name it "Lab10" Write a program to: Save the following menu to a string var named menu: [0] Quit [1] Generate a random ArrayList of ints of size and limits [2] Display the ArrayList on the screen: use enhanced "for" [3] Count and return occurrences of a value in the ArrayList [4] Compute summation of the ArrayList [5] Compute average of the ArrayList [6] Replace a certain number with another in the ArrayList [7] Sort the ArrayList [8] Return sub-list using start and finish indexes Use while-loop, loop until user chooses to quit Display the menu Ask the user to select on option Use switch statement to Ask the use for the input based on the case Execute the right operation based on the user's option Display the result of operation Repeat MUST implement each case as a separate method Test all options and screen capture the output

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Must be in JAVA. Please Attached text code and output
Create a new project and name it "Lab10"
Write a program to:
Save the following menu to a string var named menu:
[0] Quit
[1] Generate a random ArrayList of ints of size and limits.
[2] Display the ArrayList on the screen: use enhanced "for"
[3] Count and return occurrences of a value in the ArrayList
[4] Compute summation of the ArrayList
[5] Compute average of the ArrayList
[6] Replace a certain number with another in the ArrayList
[7] Sort the ArrayList
[8] Return sub-list using start and finish indexes
Use while-loop, loop until user chooses to quit
Display the menu
Ask the user to select on option
Use switch statement to
Ask the use for the input based on the case
Execute the right operation based on the user's option
Display the result of operation
Repeat
MUST implement each case as a separate method.
Test all options and screen capture the output
Transcribed Image Text:Must be in JAVA. Please Attached text code and output Create a new project and name it "Lab10" Write a program to: Save the following menu to a string var named menu: [0] Quit [1] Generate a random ArrayList of ints of size and limits. [2] Display the ArrayList on the screen: use enhanced "for" [3] Count and return occurrences of a value in the ArrayList [4] Compute summation of the ArrayList [5] Compute average of the ArrayList [6] Replace a certain number with another in the ArrayList [7] Sort the ArrayList [8] Return sub-list using start and finish indexes Use while-loop, loop until user chooses to quit Display the menu Ask the user to select on option Use switch statement to Ask the use for the input based on the case Execute the right operation based on the user's option Display the result of operation Repeat MUST implement each case as a separate method. Test all options and screen capture the output
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Unreferenced Objects
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education