Statistics
Write a program that takes 10 floating-point numbers as inputs. The program displays the average of the numbers followed by all of the numbers that are greater than the average. As part of your design, write a method that takes an array of doubles as a parameter and returns the average of the data in the array.
The mode of a list is the number listed most often. Write a program that takes 10 numbers as input and displays the mode of these numbers. Your program should use parallel arrays and a method that takes an array of numbers as a parameter and returns the value that appears most often in the array.
The median of a list of numbers ithe value in the middle of the list if the list is arranged in order. Add to the program the capability of displaying the median of the list of numbers.
Class:
BankAccount(String owner, int
balance)
[use the
following trick – all transactions are multiplied by 100 so can work only with
integers. Whenever displaying results, divide by 100 into a float. )
Method(s):
public int ???()
Modified from
Fundamentals of Java – Third Edition – Lambert/Osborn – 2007, Projects 9-2,
9-3, and 9-, p.
347.