Question: For this extra credit assignment, this application will calculate and display an employee's gross salary, which is based on the hours worked and pay rate

For this extra credit assignment, this application will calculate and display an employee's gross salary, which is based on the hours worked and pay rate entered by the user. We will be using the combobox (simple style) as shown above. Put in the items 42.0, 42.5, 43.0, 43.5, 44.0, 44.5, 45.0 for the hours and 7.25, 7.50, 7.75, 8.00, 8.50 for the items in the rate combobox. Create your own void method called "CalcGrossPay" which takes in the hours, rate and reference variable grosspay and uses the logic belowto set the gross pay. Using the code below: gross = hours * rate; if (hours > 40) gross = gross + (hours - 40) * rate; By using the reference variable, the gross pay will be set in the calling method and you can display the result in the display label
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
