Explore BrainMass
Share

Explore BrainMass

    create a flow chart for this pseudo-code

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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

    © BrainMass Inc. brainmass.com October 9, 2019, 4:21 pm ad1c9bdddf
    https://brainmass.com/computer-science/pseudocode/create-flow-chart-pseudo-code-29670

    Solution Preview

    The flow chart is attached. Check whether you can change or modify.

    Description Please create a flow chart for this pseudo-code
    Posting Input File
    FirstName
    LastName
    SSNumber
    Grade

    start
    perform housekeeping()
    while not eof ...

    Solution Summary

    Ideas to create a flow chart for this pseudo-code are given.

    $2.19