Answer to Question #27401 in Visual Basic for princessa paul
Use 2 scroll bars to select the hours worked (an integer) and hourly rate (a double)
All buttons and other objects must be named with appropriate names;
When either scoll bar changes use a general sub to compute pay.
If hours is less than or equal to 40, the pay is simply hours times rate.
If the hours is more than 40 the first 40 hours are paid at the regular hourly rate. Each overtime hour is paid at 1.5 times the hourly rate.
Display the pay in a label formatted to 2 decimal places.
Need a fast expert's response?Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!