Question
Visual Logic Assignment Four This program enhances payroll.vls from Assignment Three. You can save effort by loading it and saving another console version as overtime.vls.
Visual Logic Assignment Four This program enhances payroll.vls from Assignment Three. You can save effort by loading it and saving another console version as overtime.vls. In the new version: Delete the Input for the user's name ( to simplify things ) Add Input that asks if the employer pays overtime at "time and a half" for hours over 40 in one week ( 42 hours = 2 hours of OT, which earns 3 hours of pay ) Add an IF branch to determine if OT pay applies based on this Input Add an IF branch to determine the OT pay (if any is deserved ) Add Output(s) showing the total pay (regular pay and OT, if any and applicable) . . Here are some possible runs for the program: Jox 10 What is your hourly rate of pay? How many hours did you work? 35 Your weekly pay is $350.00 In the above run, note that OT is not an issue since the weekly hours are not over 40. -OX What is your hourly rate of pay? 10 How many hours did you work? 44 Does the employer pay Ot at time and a half? Your weekly pay is $440.00 (Y or N) "N" In the above run, since hours exceed 40, the prompt about the employer's OT policy appears but the employer does not pay "Time and a half", so no OT is paid What is your hourly rate of pav? 10 au a II: Tevco tic, IPvc vay vil Your weekly pay is $440.00 In the above run, since hours exceed 40, the prompt about the employer's OT policy appears but the employer does not pay "Time and a half", so no OT is paid -OX What is your hourly rate of pay? 10 How many hours did you work?" 44 Does the employer pay or at time and a half? Your weekly pay is $460.00 (Y or N) In this final run, hours exceed 40 and the employer pays "time and a half". The 4 hours of OT earn 4 x 1.5 x 10 = $60.00 of OT pay. NOTE: Your program should run in a like manner for these inputs. Save as overtime.vls. Lesson Five (perform actions in boldface ) This lesson is about loops. Often, computer programs need to repeat a block of code. The most efficient way to do this is by placing the code inside a loop. Like most programming
Please create the program for Assignment Four and write the codeseparately. Upload the program and Upload the code used to create the program. Thanks
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started