Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program with a main method that asks the user to enter an array of 10 in

ID: 3769024 • Letter: W

Question

Write a program with a main method that asks the user to enter an array of 10 inte gers. Your main method then calls each of the three methods described below and prints out the results of the two methods which return values. printReverse - a void method that prints out the array in reverse of the way it was entered all on one line sepa rated by commas (see sample output below) computeTotal - an method that returns an int which is the total of all the numbers in the array. getLargest - an int method that returns the largest value in the array. Sample output: Enter a number: 22 Enter a number: 34 Enter a number: 21 Enter a number: 35 Enter a number: 12 Enter a number: 4 Enter a number: 2 Enter a number: 3 Enter a number: 99 Enter a number: 81 Here are your numbers in reverse: 81, 99, 3, 2, 4, 12, 35, 21, 34, 22 The numbers total up to 311 The highest number is 99

Explanation / Answer

Program:

Sample output:

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote