Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 9 For Linux UNIX And Windows Advanced Database Administration Certification Certification Study Guide

Authors: Roger E. Sanders, Dwaine R Snow

1st Edition

1583470808, 978-1583470800

More Books

Students also viewed these Databases questions

Question

8. Explain the relationship between communication and context.

Answered: 1 week ago

Question

5. A review of the key behaviors is included.

Answered: 1 week ago