Creating a flow chart for the given pseudo-code


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

Solution Preview :

Prepared by a verified Expert
Other Subject: Creating a flow chart for the given pseudo-code
Reference No:- TGS01936496

Now Priced at $20 (50% Discount)

Recommended (94%)

Rated (4.6/5)