The program should do the following tasks. The program should initialize an entire array of double...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The program should do the following tasks. The program should initialize an entire array of double values that are arbitrarily selected. The array should have at least ten values in it. (For a challenge, have the values obtained from a data file, or entered via the keyboard by the user.) The program should determine and output the maximum and minimum values in the array. It should do this by calling methods that are defined within the .java file. One method should determine and return the minimum value in the array, and the other one should determine and return the maximum value of the array. Each function should take in an array of double values as a parameter, and return a double value equaling either the maximum or the minimum value. The program should also determine the difference between the minimum to the maximum value and output the difference. A method should be made to take in an array of double values as a parameter, and return a double value equaling the maximum-minimum value difference. The program should also determine and output the mean average of the values in the array. A method should be made to take in an array of double values as a parameter, and return a double value equaling the mean average. The formula for the mean average is below t1+t2+t3+th The program should do the following tasks. The program should initialize an entire array of double values that are arbitrarily selected. The array should have at least ten values in it. (For a challenge, have the values obtained from a data file, or entered via the keyboard by the user.) The program should determine and output the maximum and minimum values in the array. It should do this by calling methods that are defined within the .java file. One method should determine and return the minimum value in the array, and the other one should determine and return the maximum value of the array. Each function should take in an array of double values as a parameter, and return a double value equaling either the maximum or the minimum value. The program should also determine the difference between the minimum to the maximum value and output the difference. A method should be made to take in an array of double values as a parameter, and return a double value equaling the maximum-minimum value difference. The program should also determine and output the mean average of the values in the array. A method should be made to take in an array of double values as a parameter, and return a double value equaling the mean average. The formula for the mean average is below t1+t2+t3+th
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these programming questions
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Given that log 10 (x 2 y) = 4 and log 10 (x 4 /y 3 ) = 18, find the value of log 10 x and of log 10 y.
-
Suppose that Jimmy and Roslyn are married and have the following adjusted gross incomes. Compute their tax liabilities individually and as a couple. Determine whether they receive a marriage bonus or...
-
Assume a processor having a memory cycle time of 300 ns and an instruction processing rate of 1 MIPS. On average, each instruction requires one bus memory cycle for instruction fetch and one for the...
-
Determine the displacement of point \(C\). The beam is made from A992 steel and has a moment of inertia of \(I=53.8 \mathrm{in}^{4}\). 8 kip A B -5 ft- -10 ft 5 ft-
-
Two items are omitted from each of the following summaries of balance sheet and income statement data for two corporations for the year 2015, Plunkett Co. and Herring Enterprises. Instructions...
-
Vectors only point left or right in this problem. So, for numeric answers, right is positive (+) and left is negative (-). A negative-charge particle called a muon with charge -1.60 * 10 -19 C and...
-
The Shrubbery division of Arbor Company had sales of $1,500,000, average operating assets of $600,000, contribution margin of $270,000, and controllable fixed costs of $180,000. If management has a...
-
If f(x) = x +3, g(x)=x-5 and H(x) = : (a) evaulate f(1), g(1) and H(1). (b) graph f(x), g(x) and H(x) for -5 x 10. (c) evaluate f(3x), g(3x) and H(3x). (d) evaluate f(x+h), g(x+h) and H(x + h).
-
Suppose QR factorization is used to compute the solution of a square linear system, Ax = b; i.e., let m = n. (a) Find an asymptotic flop count for this procedure, and compare to the LU factorization...
-
-A window washer is standing on a scaffold supported by a vertical rope at each end. The scaffold weighs 300 N and is 4.50 m long. What is the tension in each rope when the 600-N worker stands 1.30 m...
-
Determine which of the given lines are parallel to each other and which are perpendicular to each other. (a) 2 x 3 y + 4 = 0 (b) 3 x 2 y = 0 (c) 2 x 3 y = 7 (d) 2 x + 3 y + 2 = 0 (e) 2 x + 3 y + 9 =...
-
Consider the curve C defined by the parametric vector r(t) = et < cos(t), sin(t), 1 >, t0. Parametrise the curve in terms of the arc lenghts and show that Clearly state the interval for s. d ||r(s)...
-
Write a paper that addresses the following points about your 3-day food intake: Recorded intake of protein, carbohydrates, and lipids which foods in your recorded daily intake provide protein? Which...
-
The Place-Plus real estate development firm in Problem 24 is dissatisfied with the economists estimate of the probabilities of future interest rate movement, so it is considering having a financial...
-
What is the pressure drop associated with water at \(27^{\circ} \mathrm{C}\) flowing with a mean velocity of \(0.1 \mathrm{~m} / \mathrm{s}\) through an \(800-\mathrm{m}-\) long cast iron pipe of...
-
Fully developed conditions are known to exist for water flowing through a \(50-\mathrm{mm}\)-diameter tube at \(0.02 \mathrm{~kg} / \mathrm{s}\) and \(27^{\circ} \mathrm{C}\). What is the maximum...
-
Water at \(35^{\circ} \mathrm{C}\) is pumped through a horizontal, \(200-\mathrm{m}\)-long, \(30-\mathrm{mm}\)-diameter tube at \(0.25 \mathrm{~kg} / \mathrm{s}\). Over time, a 2-mm-thick layer of...
Study smarter with the SolutionInn App