Problem
Write a Java class that returns 5 values (1 - 5) to the following frequency distribution:
return value
|
frequency
|
1
|
5%
|
2
|
10%
|
3
|
15%
|
4
|
20%
|
5
|
50%
|
Write a driver program that invokes the frequency class 100 times and displays the frequency results from 1 to 5.