JM Sales Bonus Rate

JM Sales employs eight salespeople. The sales manager wants an application that allows him to enter a bonus rate. The application should use the rate, along with the eight sale amounts stored in an array, to calculate each salesperson’s bonus amount. It also should calculate the total bonus paid to the salespeople. The application should display each salesperson’s number (1 through 8) and bonus amount, as well as the total bonus paid, in the interface.

A) List the output and input items, as well as any processing items, then create an appropriate algorithm using pseudocode.

B) Create a new Visual Basic Windows application.

C) Code the application. Use a one-dimensional array whose elements are initialized to the following sale amounts: 2400, 1500, 1600, 2790, 1000, 6300, 1300, and 2700. The txtRate control should accept only numbers, the period, and the Backspace key. The contents of the txtReport control should be cleared when a change is made to the contents of the txtRate control.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.