Using a method, create an integer array of 30 elements. Using the Random Number process and a loop, fill the array with numbers between 0 and 49. In a separate method, ask the user to provide a number...


Using a method, create an integer array of 30 elements. Using the Random Number process and a loop, fill the array with numbers between 0 and 49.


In a separate method, ask the user to provide a number between 0 and 49 and return this value.


Using another loop, review the array and display every number and a message as to whether the number in the array element is greater than, equal to or less than the number provided by the user.


Grading Criteria:



  • Documentation Requirements

    • Method has header comments (purpose, @param, @return) as applicable

    • Follow the naming conventions for variables

    • Use indentations and blank lines for readability

    • Coding Techniques not covered in class are documented



  • Assignment Task Requirements

    • Properly coded methods (creating and filling the array, receiving user input)

    • Correctly build a 30-element integer array

    • Correctly generate radom numbers from 0 to 49

    • Calculate the correct result



  • Display Requirements

    • Your program compiles and runs with no errors

    • Instructions to the user are clear and understandable by someone not familiar with the assignment

    • Data output is clearly labeled

    • Displays the array element value and whether it is higher or lower or equal than the user’s number



May 03, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here