Menu

[solved]-Write Java Program Please Provide Pseudo Code Flowchart Already Asked Questions Actually Q39067561

write a java program, please provide the pseudo-code orflowchart too. i already asked this questions but i am actually nothappy so please just follow the questions, again i do needpseudo-code as well as  Summary: In this program, youwill declare an array, and search the array, sort the array, andthen search the array again

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. i already asked this questions but i am actually … . . .

OR


Leave a Reply

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