Question
In C# Use a two-dimensional array to solve the following problem: A company pays its salespeople on a commission basis. Salespeople receive $200 per week,
In C#
Use a two-dimensional array to solve the following problem:
A company pays its salespeople on a commission basis. Salespeople receive $200 per week, plus 5% of their gross sales for that week. For example, a salesperson who grosses $9,000 in sales in a week receives $200 plus 5% of $9,000, a total of $650. Write an app (using an array for lower salary limit, upper salary limit, and a counter) that determines how many of the salespeople have earned compensation in each of the following ranges: $200-299, $300-$399, $400-499, $500-599, $600-699, $700-799, $800-899, $900-999.
1. Declare a two-dimensional array, type Integer, with three columns and eight rows.
2. Create a Form_Load subroutine that populates the lower limits and upper limits into their appropriate columns. You must use a For Loop to perform this task to receive full credit.
3. In the CalculateButton_Click subroutine, calculate the salary for the entered sales amount (no need to validate). Increment the counter values to reflect the latest calculated salary. Display the updated information in the listbox.
I am specifically having trouble with the second step. Anyone have an idea of how it would be done?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started