Create an application, using the following names for the solution and project, respectively: Gross Solution-Function and Gross

Question:

Create an application, using the following names for the solution and project, respectively: Gross Solution-Function and Gross Project. The application’s interface is shown in Figure 7-30. The lstHours control should display the number of hours worked from 1 to 60 in increments of 1. The lstRates control should display pay rates from 10.00 to 30.00 in increments of 0.5. The default selections in the lstHours and lstRates controls should be 37 and 10.00, respectively. The application should use a function to calculate and return an employee’s gross pay, which is based on the number of hours worked and the pay rate selected in the list boxes. Employees are paid their regular pay rate for hours worked from 1 through 37. They are paid time and a half for the hours worked from 38 through 50, and they are paid double-time for hours worked over 50. Test the application appropriately. If an employee earns $10 per hour and works 37 hours, the gross pay is $370.00. If he or she works 38 hours, the gross pay is $385.00. If he or she works 51 hours, the gross pay is $585.00.

Gross Pay Calculator Hours: Rates: IstRates IstHours Calculate Exit Gross pay.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: