Uploaded by ren2xapurz

Pseudocodes

advertisement
Pseudocodes
Variables
a= number of hours
b= hourly rate
c=overtime rate
d= overtime pay
e= no of hours over timed
S= salary
Directions/ Command:
START
INITIALIZE a,b,c,d,e, S
SET INT a, d, e, S= 0
SET double b= 40.65
SET double c= 50.78
INPUT VALUE a
IF
[ a<=a8 ],
then d→0
ELSE [ a>8 ],
Then e→a-8
ENDIF
INPUT VALUE e
IF
[ e→a-8 ]
THEN d→e*c,
print number c valued 50.78
ENDIF
INPUT VALUE S
[S→sum (a*b) and d ]
print number b valued 40.65
Print Display S Output- formatted
END
Download