The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | Apr 2017 |
| Last Sign in: | 103 Weeks Ago, 3 Days Ago |
| Questions Answered: | 4870 |
| Tutorials Posted: | 4863 |
MBA IT, Mater in Science and Technology
Devry
Jul-1996 - Jul-2000
Professor
Devry University
Mar-2010 - Oct-2016
Array Manipulation with Methods - Java Programming
Homework 5 Java ProgrammingDue 8:00 am October 27October 17, 2016This homework is designed improve your proficiency in writing a simpleJava program that manipulate arrays. To complete this exercise you willuse the correct Java syntax to write a series of methods that perform somespecified type of array manipulation. Your program must compile correctlywith no errors. Submit this homework on Blackboard by the due time-dateas a.javafile.1 Array ManipulationAll arrays should be of length 5.1.1 Calculate Array RangeCreate a method that accepts adoublearray and returns the difference between themaximum element and the minimum element.EXAMPLE: A = {1,2,3,4,5} returns 41.2 Calculate Array AverageCreate a method that accepts andoublearray and returns the average of its elements.EXAMPLE: A = {1,2,3,4,5} returns 31.3 Random Array OutputCreate a method that accepts adoublearray and randomlyreturns one of its elementseach time the method is called.EXAMPLE: A = {1,2,3,4,5} returns one of the array values at randomHint:utilize theMath class1
Attachments:
-----------