Sample Flowchart and Pseudo Code. By Prof F. Winters 4/14/05, 11/27/06
Note: This is a very short sample. Yours probably should be about twice as long.
|
Symbol Name |
Flowchart |
Pseudocode |
|
Terminator |
|
Begin Wage Program |
|
Input |
Enter Employee Hours |
|
|
Decision |
Check if Hours are Valid (Under 60 Hours) If N then Reenter If Y then Enter Rate |
|
|
Input
|
Enter Employee Pay Rate (add: Check if Rate is Valid) |
|
|
Process |
Calculate Employee Pay: Multiply Hours times Rate |
|
|
Output – Monitor |
Display to Monitor (add: Printout Employee Pay)
|
|
|
Output - Disk |
Save to Disk
|
|
|
Decision |
Are there More records? If Yes – Enter new Hours If No – End the program |
|
|
Terminator |
End Wage Program (Note: one Entrance, one Exit) |