Question: Programming in JAVA,,, 2. create array of counters salaryCounts each element of which will store the count of salaries in one particular range (decide how

Programming in JAVA,,,

2.

  • create array of counters salaryCounts each element of which will store the count of salaries in one particular range (decide how large this array should be...)
  • user enters the total sales of the sales person in a sentinel controlled loop (until there are more sales people)
  • calculation of the salary is done for that sales person
  • Corresponding element of the array is incremented based on the salary. For example if salary is the range of $300-399 the array element ("bucket") with index 3 is incremented, if it is in the range of $500-599 the "bucket" with index 5 is incremented.
  • Results are printed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!