Explore BrainMass
Share

Explore BrainMass

    Top-down Modular Approach and Pseudocode

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

    Provide the analysis and pseudocode only (no diagrams are required).

    For each of the following problems, use the top-down modular approach and pseudocode to design a suitable program to solve it.

    1. Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form:

    student (string), test1 (integer), test2 (integer), test3 (integer)
    In this file, all test scores should be set equal to 0.

    2. Display the contents of the file GRADES created in Problem 1. Each student's record should appear on a separate line and include the total score (the sum of the three tests) for that student. For example, a line of output might be:

    R. Abrams 76 84 82 242

    © BrainMass Inc. brainmass.com October 9, 2019, 9:25 pm ad1c9bdddf
    https://brainmass.com/computer-science/pseudocode/pseudocode-184513

    Solution Preview

    Hi there,

    Here are some sample pseudocodes...

    Problem 1:

    Input names of students from the user, terminated by ZZZ, and create a data file GRADES with records of the form:

    student (string), test1 (integer), test2 (integer), test3 (integer)
    In this file, all test scores should be set equal to 0.

    Main Program

    Open GRADES

    Declare Name as ...

    Solution Summary

    This Solution is described in over 100 words.

    $2.19