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: | Jul 2017 |
| Last Sign in: | 399 Weeks Ago, 1 Day Ago |
| Questions Answered: | 5023 |
| Tutorials Posted: | 5024 |
Â
Hello,
Â
Need some help with an assignment for my Java Class, can't seem to integrate the methods listed below, they have to integrated as listed, and I'm having trouble.
Â
Â
Â
Construct a program (ArrayDemo.java) that prompts the user to enter 5 integer numbers. Once the user enters the 5 numbers, the program must determine and output the average, the largest, and smallest of 5 numbers.
Â
You must define the methods listed below in your program. Make sure to keep the keyword "static" when you define the methods (we will learn later what static means). Call these methods from the "main" to get the job done.
Â
static float getAverage(int[] data)
Â
 {
// put your implementation here
}
static int getLargest(int[] data)
Â
 {
// put your implementation here
}
static int getSmallest(int[] data)
{
// put your implementation here
}
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- T-----------han-----------k y-----------ou -----------for----------- yo-----------ur -----------int-----------ere-----------st -----------and----------- bu-----------yin-----------g m-----------y p-----------ost-----------ed -----------sol-----------uti-----------on.----------- Pl-----------eas-----------e p-----------ing----------- me----------- on----------- ch-----------at -----------I a-----------m o-----------nli-----------ne -----------or -----------inb-----------ox -----------me -----------a m-----------ess-----------age----------- I -----------wil-----------l b-----------e q-----------uic-----------kly-----------