The function will receive an int parameter


Program
1. Import the java.util package. (java.util.*)
2. Declare an int[] array of size 10, meaning it will hold 10 integer values.
3. Create your Scanner object to accept keyboard input.
4. Prompt user for input.
5. Use a loop to populate the array with the user input. First you must validate the input by using the checkNums function.
6. Output the array to the screen using a loop.
7. Output the contents of the array in reverse order using a loop.

checkNums() function

1. The checkNums function is of type Boolean. It will return a true or false depending on whether the number is valid or not.
2. The function will receive an int parameter.
3. The function will check this parameter to see if it between 0 and 25.
4. A boolean variable is needed in the function. E.g., if the number is 27 then the variable would be set to false and the function would return false to the calling program. In this casethe program would then warn the user and prompt the user to enter another number. If the number is within the acceptable range then the variable would be set to true and the function would return true. At this point the program would move on to prompt the user for the next number.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: The function will receive an int parameter
Reference No:- TGS0109515

Expected delivery within 24 Hours