This document contains code for a payroll processing program. It includes prompts for inputting an employee's name, age, sex, rate per day, number of days worked, allowance, gross pay, deductions, net pay, and whether to process another employee. The code displays input fields and labels, performs calculations, handles input validation, and displays results or loops back to re-prompt if needed. The overall purpose is to calculate payroll information for multiple employees.
This document contains code for a payroll processing program. It includes prompts for inputting an employee's name, age, sex, rate per day, number of days worked, allowance, gross pay, deductions, net pay, and whether to process another employee. The code displays input fields and labels, performs calculations, handles input validation, and displays results or loops back to re-prompt if needed. The overall purpose is to calculate payroll information for multiple employees.
This document contains code for a payroll processing program. It includes prompts for inputting an employee's name, age, sex, rate per day, number of days worked, allowance, gross pay, deductions, net pay, and whether to process another employee. The code displays input fields and labels, performs calculations, handles input validation, and displays results or loops back to re-prompt if needed. The overall purpose is to calculate payroll information for multiple employees.
SET STAT OFF DO WHILE .T. CLEAR CLEAR ALL DEFI WIND ARIES FROM 15,47 TO 45,127 TITLE"EFT MANPOWER CORPORATION" FLOAT MINI SHAD GROW CLOSE ACTI WIND ARIES AN="Account Name" PP="Password Please" AN1=SPACE(5) PP1=SPACE(6) @5,5 SAY AN FONT"ARIAL BLACK", 14 STYLE"BOLD" @15,5 SAY PP FONT"ARIAL BLACK", 14 STYLE"BOLD" DO WHILE .T. @5,30 GET AN1 FONT"CALIBRI", 14 STYLE"BOLD" PICT"@!" READ IF .NOT. AN1$ "ARIES" LOOP ELSE EXIT ENDIF ENDDO DO WHILE .T. @16,30 GET PP1 FONT"WEBDINGS", 2 PICT"@!" READ IF .NOT. PP1$ "DIENDO" LOOP ELSE EXIT ENDIF ENDDO IF MESSAGEBOX("LOG IN SUCCESSFUL",0,"Confirmation")=6 *OK code ENDIF DO WHILE .T. CLEAR CLEAR ALL EMC="EFT MANPOWER CORPORATION" GSC="General Santos City" A="Age" WN="Worker's Name" SC="Sex Code[M-F]" RPR="Rate Per day" NDW="No. of days work(ed)" AL="Allowance" GP="Gross Pay" DD="Deduction" NP="Net Pay" PM="Process More[Y-N]?" P="P" WN1=SPACE(13) SC1=SPACE(1) RPR1=0 AL1=0 GP1=0 A1=0 NDW1=0 DD1=0 NP1=0 PM1=SPACE(1) @5,5 SAY EMC FONT"CALIBRI", 14 STYLE"BOLD" @6.5,5 SAY GSC FONT"CALIBRI", 12 @9,5 TO 22,41 DOUBLE @9.5,43 TO 16,85 DOUBLE @18,43 TO 22,85 DOUBLE
@10,6 SAY WN @12,6 SAY A @14,6 SAY SC @16,6 SAY RPR @18,6 SAY NDW @20,6 SAY AL @10,44 SAY GP @12,44 SAY DD @14,44 SAY NP @19,44 SAY PM
@16,23 SAY P STYLE"BOLD"
@20,23 SAY P STYLE"BOLD" @10,60 SAY P STYLE"BOLD" @12,60 SAY P STYLE"BOLD" @14,60 SAY P STYLE"BOLD"
@10,27 GET WN1
@12,27 GET A1 FONT"CALIBRI" PICT"99" DO WHILE .T. @14,27 GET SC1 FONT"CALIBRI", 8 PICT"@!" READ IF .NOT. SC1$ "M,F" LOOP ELSE EXIT ENDIF ENDDO DO CASE CASE SC1="M" SC2="Male" CASE SC1="F" SC2="Female" ENDCASE @14,31 SAY SC2 STYLE"BOLD" @16,27 GET RPR1 FONT"CALIBRI" PICT"###,###.##" @18,27 GET NDW1 FONT"CALIBRI" PICT"99" @20,27 GET AL1 FONT"CALIBRI" PICT"####,###.##" READ GP1=(RPR1*NDW1)+AL1 @10,66 SAY GP1 FONT"CALIBRI" PICT"###,###.##" @12,66 GET DD1 FONT"CALIBRI" PICT"###,###.##" READ NP1=GP1-DD1 @14,66 SAY NP1 FONT"CALIBRI" PICT"###,###.##" @19,66 GET PM1 PICT"@!" READ IF .NOT. PM1$"N" LOOP ELSE EXIT ENDIF ENDDO IF .NOT. PM1$"Y" LOOP ELSE EXIT ENDIF ENDDO