Write two overloaded methods in a class named AverageOfArray that return the average of an array with the following headers: public static int average (int[] array) public static double average (double [] array) Write a main method that prompts the user to enter ten double values, invokes this method, and displays the average value. Use CamelCase Notation for all identifiers in your program.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter9: Advanced Array Concepts
Section: Chapter Questions
Problem 13RQ
icon
Related questions
Question

this is a java question read what in the question says and please dont plagarise or copy from other sources do it on your own and read what in the question says thank you 

2.
Programming with One-Dimensional Arrays
Write two overloaded methods in a class named AverageOfArray that return the average of an array
with the following headers:
public static int average (int[] array)
public static double average (double[] array)
Write a main method that prompts the user to enter ten double values, invokes this method, and displays
the average value. Use CamelCase Notation for all identifiers in your program.
Transcribed Image Text:2. Programming with One-Dimensional Arrays Write two overloaded methods in a class named AverageOfArray that return the average of an array with the following headers: public static int average (int[] array) public static double average (double[] array) Write a main method that prompts the user to enter ten double values, invokes this method, and displays the average value. Use CamelCase Notation for all identifiers in your program.
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage