Use a
one-dimensional array to solve the following (or you could just use 10 integer variables) .
A company stores
the sales that sales people achieved in a comma delimited sequential file in
the format: SalesPersonID, SaleAmount
E001,44
E002,22
E003,45
E004,89
E005,56
E006,55
For example salesperson with the ID E001
sold 44 units
Write a program
that determines how many salespeople had sales in each of the following ranges.
0-9,
10-19,20-29,30-39,40-49,50-59, 60-69,70-79,80-89,90-100
Display the
results as a bar chart which displays a "#" representing the number of results
in each range . Your program will have a least two methods besides the Main
Method, one to determine the grade range and another to print the bar chart.
Example
Output :
Sale
Distribution
0-9
10-19
20-29 #
30-39
40-49 ##
50-59 ##
60-69
70-79
80-89 #
90-100