Professional Documents
Culture Documents
PROGRAMMING
CHAPTER 1:
INTRODUCTION TO ‘C’ LANGUAGE
( F L OW C HA RT )
P R E PA R E D B Y:
A AY U S H I C H A U D H A R I
A S S I S TA N T P R O F E S S O R
START END
Input Output
Decision
Gross Pay
= Hours * Pay Rate
END
Gross Pay
= Hours * Pay Rate
END
Gross Pay
= Hours * Pay Rate
END
Gross Pay
= Hours * Pay Rate
END
END
Read Hours
Variable Contents:
Hours: 40 Display message
“How much do you
get paid per hour?”
Pay Rate: 20
Gross Pay: 800 Read Pay Rate
Gross Pay
= Hours * Pay Rate
Output Operation
Display Gross Pay
END
YES
x < y? Process A
while (x < y)
YES x++;
x < y? Add 1 to x
YES
x < y? Display x Add 1 to x
1 2 3 Other
YES
x < y? Display x Add 1 to x
Display “x is Display “x is
outside the limits.” within limits.”
STOP
Print
Length_cm
STOP
Read A, B, C
No No
END