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

Must be in JAVA. Please Attached text code and output

  1. Create a new project and name it Lab10
  2. Write a program to:
  3. 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

  1. Use while-loop, loop until user chooses to quit
  2. Display the menu
  3. Ask the user to select on option
  4. Use switch statement to
  5. Ask the use for the input based on the case
  6. Execute the right operation based on the users option
  7. Display the result of operation
  8. Repeat
  9. MUST implement each case as a separate method
  10. Test all options and screen capture the output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!