Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Okay, so here is the problem: use a one-dimensional array to solve the following

ID: 3609641 • Letter: O

Question

Okay, so here is the problem: use a one-dimensional array to solve the followingproblem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross salesfor that week. Write a program using an array of countersthat determines how many of the salespeople earned salaries in eachof the following ranges (Here you would create a String arrayand initialize it to contain the following ranges $200-299 $300-399 $400-499 $500-599 $600-699 $700-799 $800-899 $900-999 $1000 and over Then create an empty Decimal array to store the number ofemployees who earn salaries in the range. You should be abe to enter the grossSales for severalemployees and it would calculate how many of the salespeople earnedsalaries in each of the above ranges. Can you do this>>??? use a one-dimensional array to solve the followingproblem: A company pays its salespeople on a commission basis. The salespeople receive $200 per week, plus 9% of their gross salesfor that week. Write a program using an array of countersthat determines how many of the salespeople earned salaries in eachof the following ranges (Here you would create a String arrayand initialize it to contain the following ranges $200-299 $300-399 $400-499 $500-599 $600-699 $700-799 $800-899 $900-999 $1000 and over Then create an empty Decimal array to store the number ofemployees who earn salaries in the range. You should be abe to enter the grossSales for severalemployees and it would calculate how many of the salespeople earnedsalaries in each of the above ranges. Can you do this>>???

Explanation / Answer

please rate - thanks DIM range$(9) DIM salaryrange(9) CLS range$(1) = "$200-299" range$(2) = "$300-399" range$(3) = "$400-499" range$(4) = "$500-599" range$(5) = "$600-699" range$(6) = "$700-799" range$(7) = "$800-899" range$(8) = "$900-999" range$(9) = "$1000 and over" PRINT "Program to find number of salesmen in a salary range" PRINT "Enter the salesman's gross sales (0 to end)" INPUT gross WHILE (gross 0)      salary = 200 + gross * .09      index = salary 100 - 1      IF index > 9 THEN           index =9      END IF      PRINT index      salaryrange(index) = salaryrange(index) +1      PRINT "Enter the salesman's gross sales (0to end)"      INPUT gross WEND FOR i = 1 TO 9       PRINT range$(i); " ";salaryrange(i) NEXT i STOP END
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote