Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Why do we need benefi ts to be measureable?

Answered: 1 week ago