Question:Write the syntax of loop structure in pseudocode.
DO WHILE (condition)
instruction-1
instruction-2
...
END DO
Question:What is sequence structure in pseudocode?
The sequence structure in pseudocode simply express in English what it is we want to do, in the order in which we want to do it.
Question:What do you mean by documenting a program? Write down the benefits of it.
Documenting: Preparing a written record of all activities associated with the programming process.
Benefits:
1. When time comes to change a program, even the programmer who worte it is likely to have difficulty remembering the details of the program unless it has been well documented.
2. If the original programmer is no longer available, it may be virtually impossible to modify the program unless very careful and detailed documentation exists.
3. Without adequate documentation, it may be necessary to rewrite completely a program that must be changed.
Question:What is refining algorithm?
A series of refinements after initial algorithm to make the process more efficient and to include some steps that we had failed to consider in our initial algorithm.
Question:Define Interperter.
Interpreter:
1. The syntax of each instruction is checked as it is entered.
2. Instructions that contain syntax errors are corrected and reentered.
3. Instructions without errors are executed immediately.
4. No object program is produced.