Menu

[solved]-Write Java Program Please Provide Pseudo Code Flowchart Summary Program Declare Array Sea Q39065211

write a java program, please provide the pseudo-code orflowchart too. Summary: In this program, you will declare an array,and search the array, sort the array, and then search the arrayagain

Requirements

  1. Ask the user for the number of items to have in the array. Thenumber must be between 5 and 20.
  2. Create an array of type int with the number ofelements that the user entered
  3. Populate the array with random numbers between 0 and 100
  4. Print the array of numbers out so the user can see what numbershave been stored
  5. Ask the user for one of the numbers
    1. Search the array
    2. Print out what element in the array contains the number theuser entered
    3. Print out how many array elements you had to compare to findthe number the user entered
  6. Sort the array
  7. Search again
    1. Search the sorted array for the same number that the userentered using a binary search.
    2. Print out what element of the array contained the user’snumber
    3. Print out how many array elements you had to compare to findthe number

Expert Answer


Answer to write a java program, please provide the pseudo-code or flowchart too. Summary: In this program, you will declare an ar… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *