mark saladino
asked on
Using one-dimensional array
1) Using one-dimensional array. A company pays its 20 salespeople on a commission basis. The sales people receive PHP 2,000.00 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses PHP 5,000.00 in sales a week receives PHP 2,000.00 plus 9 percent of PHP 5,000.00, or a total of PHP 2,450.00. Write a program(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):
a. 2000-2999
b. 3000-3999
c. 4000-4999
d. 5000-5999
e. 6000-6999
f. 7000-7999
g. 8000-8999
h. 9000-9999
i. 10000 and above
a. 2000-2999
b. 3000-3999
c. 4000-4999
d. 5000-5999
e. 6000-6999
f. 7000-7999
g. 8000-8999
h. 9000-9999
i. 10000 and above
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
stale question
If you're new to PHP and want to learn the language, this article can help you find the important underpinnings and good learning resources.
https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html
If you want to jump in and try to solve this problem yourself, here is the starting point for PHP arrays.
http://php.net/manual/en/book.array.php