Here is a copy of the problem
Use a single-subscripted array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who grosses $5000 in sales in a week receives $200 plus 9% of $5000 or a total of $650. Write an application (using an array of counters) that determines how many of the salespeople earned salaries in each of the following ranges (assume that each salesperson’s salary is truncated to an integer amount):
i) $1000 and over
You should write a method that returns the salary with the gross sales as the function argument.
You should write a method that takes the salary and the array as the function arguments and increase the appropriate array elements.
Im looking for some help to get started.
Im thinking since i know the ranges which the values will fall, i can declare my array as [ 9 ]. Should i declare the price ranges as the array information?
Anyone have any tips on how i can come up with the algorithm for it? (questions to ask myself, things to consider etc..) im new at java and programming in general
This post has been edited by Purity86: 09 February 2008 - 11:21 PM