Write a program that reads in a set of positive integers


Problem

Write a "program that reads in a set of positive integers and outputs how many times a particular number appears in the list. You may assume that the data set has at most 100 numbers and -999 marks the end of the input data. The numbers must be output in increasing order. For example, for the data

15 40 28 62 95 15 28 13 62 65 48 95 65 62 65 95 95 -999 The output is

Number     Count
13                 1
15                 2
28                 2
40                 1
48                 1
62                 3
65                 3
95                 4

Write a program like this with it read number that are already in the array here are the number 60 17 18 17 19 20 21 22 23 45 130 sort the number from least to greatest and count how many of each number there is and print both the number in order and beside it in a separate column how many of each number there is so both a number and count print out.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program that reads in a set of positive integers
Reference No:- TGS03242077

Expected delivery within 24 Hours