Arrays module to read user input from terminal window

Assignment Help Basic Computer Science
Reference no: EM131381672

Write 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.

Use the Scanner class as shown in the video of the Arrays module to read user input from the terminal window.

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

Reference no: EM131381672

Questions Cloud

Discuss about the case given below : LDR 506:Defining the Work System. Begin the paper by defining the work system as it is, following Figure 4.3. Construct a similar figure and identify each component (as relevant) in the appropriate box. Also include a 1-page summary of the system ..
Are the assumptions and conditions for inference met : They've had a contribution rate of 5% in past campaigns, but a staff member worries that the rate will be lower if they run this campaign as currently designed.
Is there are differences among the three models : Carry out a complete analysis of variance, and report your results in the form of a memorandum. State your hypotheses and your conclusions. Do you believe there are differences among the three models? If so, where do they lie?
Do environmental chemicals cause congenital abnormalities : Perform the mechanics of the test. What is the P-value?
Arrays module to read user input from terminal window : Use the Scanner class as shown in the video of the Arrays module to read user input from the terminal window. You must define the methods listed below in your program.  Make sure to keep the keyword "static" when you define the methods (we will lea..
Check the necessary assumptions and conditions : You check with 80 of his customers and find that 27 have wells less than 100 feet deep. What do you conclude about his claim?
Are all three frozen pizzas perceived as equally tasty : Fifty people take part in the study, and the results include SSTR = 128,899, SSBL = 538,217, and SSE = 42,223,987. Based on these results, are all three frozen pizzas perceived as equally tasty?
Major operating systems in terms of design goals : Compare and contrast two major operating systems in terms of design goals, memory, process, device, file, security, and network management. 3-5 pages with (5-7) references.
Provide the corresponding boolean equation : For the following truth tables, provide the corresponding Boolean equation. Do not simplify the equations. Write the Boolean equation for EMERGENCY. It should be in the format identified in 2a above.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are all tangible benefits of information systems

A company that controls finances in the home country and decentralizes production, sales, and marketing operations to other countries is using a __________ strategy.

  Make a back-to-back bar graph for the data

Combine data from both leagues to construct a frequency distribution.

  Describe two situations that involve delegating work

Describe two situations that involve delegating work to other people. The first is a positive example that worked well, and the other is one that did not. Analyze the reasons for the success and failure of the two examples using the information ab..

  Information on the vulnerabilities, threats, and exploits

To assist PVSS, your contract has been expanded to also create a risk assessment. In addition, PVSS management has asked for information on the vulnerabilities, threats, and exploits.

  What do you mean by ascii or ebcdic

What is ASCII or EBCDIC? What part do the aforementioned things play in hashing? What is the formula for the PPD? What does the numerator and denominator say about the potential performance issues of this metric?

  Write a shell script called uncomp

Write a shell script called uncomp

  Write a class named candy

Write a constructor that takes arguments for the candy's name, it's calories per serving, whether it contains peanuts, and it's sourness.

  Write the function to compare 2 grids

Write the function to compare 2 grids

  Design an active bandpass filter

design an active bandpass filter that meets the following specifications: center frequency, fc, 50 kHz

  Construct an example where m does not satisfy the condition

Construct an example where M does not satisfy the condition (5.13), and the original problem has an optimal solution, while the big-M version is unbounded.

  Different entities or objects, logical process

Different entities or objects, logical process, data flows, and data stores that are involved starting from the time of submitting a time sheet

  Describe turing machine that generates the binary strings

Describe a Turing machine that generates the binary strings in lexicographical order. The first few strings in this ordering are 0, 1, 00, 01, 10, 11, 000, 001, ....

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd