Answered You can hire a professional tutor to get the answer.

QUESTION

Exercise 10-10 JavaScript :Arrays Internet and World Wide Web: How to Program 5th edition Deitel Use a one-dimensional array to solve the following...

Exercise 10-10 JavaScript :Arrays

Internet and World Wide Web: How to Program 5th edition Deitel

Use a one-dimensional array to solve the following problem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $5000 in sales per week receives $200 plus 9 percent of $5000, for a total of $650. Write a script (using an array of counters) that obtains the gross sales for each employee though an HTML5 form and determines how many salespeople earned salaries in each of the following ranges( assume that each salesperson's salary is truncated to an integer amount.):

a)$200-299 b)$300-399 c)$400-499 d)$500-599 e)$600-699 f)$700-799 g)$800-899 h)$900-999 i)$1000-over.

Include a title at the top of the page, "Company Salary Range Counters"

In the form provide text prompting for salary amount .

Build a table with titles "Range" and "Number of Employees" using the ranges shown (i.e., $200 - 299, etc.). The "Number of Employees" columns should be initialized to 0.

Include a "Submit" button to submit the salary stored in the textbox and start salary calculation and updates the appropriate array counter and table entry.

Include a "Clear" button that clears the textbox, clears all array counter values and re-initializes all table entries to 0.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question