Assignment Writing Multiple Methods Work Arrays Methods Perform Specific Functions Cases R Q37041284

In this assignment you will be writing multiple methods thatwork with arrays. These methods will perform specific functionsand, in most cases, return results.

Your class should be named Grades.

Your program will have the following methods:

  1. public static int readGrades()
  2. public static int sum(int[] arr)
  3. public static int sum(int[] arr, int firstIndex, intlastIndex)
  4. public static double average(int[] arr)
  5. public static int maxValue(int[] arr)
  6. public static int maxValue(int[] arr, int firstIndex, intlastIndex)
  7. public static int indexOfFirstMaxValue(int[] arr)
  8. public static int minValue(int[] arr)
  9. public static int minValue(int[] arr, int firstIndex, intlastIndex)
  10. public static int indexOfFirstMinValue(int[] arr)
  11. public static int numberOfBelowAverageElements(int[] arr)
  12. public static int numberOfAboveAverageElements(int[] arr)
  13. public static void rotateElements(int[] arr)
  14. public static void rotateElements(int[] arr, introtationCount)
  15. public static
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.