Question:

I admit it, I'm completely clueless. I'm about to give up.

by  |  earlier

0 LIKES UnLike

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.

use the top-down modular approach and pseudocode

 Tags:

   Report

2 ANSWERS


  1. Just describe the process in a top-down way:

    main {

    names = getnames()

    writedatafile( names )

    }

    getnames {

    loop {

    name = getstring()

    if name == "ZZZ" return names

    names = names + name

    }

    }


  2. name = ''

    while (name != "ZZZ")

    get name from user

    if (name != "ZZZ") write output (name,0,0,0)

    end while

Question Stats

Latest activity: earlier.
This question has 2 answers.

BECOME A GUIDE

Share your knowledge and help people by answering questions.
Unanswered Questions