Question:
Create a flow chart for this pseudo-code
Input File
FirstName
LastName
SSNumber
Grade
start
perform housekeeping()
while not eof
perform mainLoop()
endwhile
perform finish()
stop
housekeeping() Variables
declare variables num x
open file char foundit
read studentInfo studentInfo
return char studentName
num studentSSN
char classGrade
char grade[1] = "D"
char grade[2] = W"
char grade[3] = "I"
char grade[4] = "F"
mainLoop()
foundit = "No"
x = 1
while x <= 4
if classGrade = grade[x]
write studentSSN, "Did not complete prerequisite" to prerequisite
print studentSSN, "Did not complete prerequisite"
x = 5
foundit = "Yes"
else
x = x + 1
endif
endwhile
if foundit = "No"
write studentSSN, "Did complete prerequisite" to prerequisite
print studentSSN, "Did complete prerequisite"
endif
read studentInfo
return