Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 3

MATRIC NO:-11/69/0330

LEVEL:-HND 2
COURSE CODE:-COM412 (00PASCAL PRACTICAL)
ASSIGNMENT

QUESTION: - WRITE THE WORKING PASCAL CODE FOR


THIS FLOWCHART SHOW YOUR RESULTS.

BEGIN

INPUT HOURS

HOURS= 40

SET PAY TO 10*HOURS

SET PAY TO 10*40

+5 *(HOURS 40)

OUTPUT PAY

END

The program needs to ask for the number of hours worked, and then write
"invalid hours" if less than 0.00 hour or more than 40 hours are worked. If 40
hours worked, #550 pay earned. If more than 40 hours, the overtime pay is
#3018.125 an hour (60 hours = #3155.95).

You might also like