|
|
|
| |
|
Warnier-Orr diagrams are very similar to flowcharts, but they are more like psedoucode than blocks and shapes. They are a graphical
representations of solutions or algorithms. They are a key step between the understanding of the steps needed to accomplish a task and the different
steps that the program will take to finish the task. The more complex the problem, the more a Warnier-Orr diagram or other similar tool is essential
in the design process of the program. This is because the more complex a program, the harder it is to follow the logical relationships of all
of the steps with in the program. Warnier-Orr diagrams allow the programmer to work on and record one part of the problem, before moving to next problem,
without being mired in the complexity of the whole program. They also allow the programmer to work out the logic of the program without being
bogged down with the syntax of a specific language. The ability to understand the logical structure of a program without being confused in the details
is indispesable.
|
| |
Sequence
Create a Warnier-Orr diagram that converts a temperature in celsius to it temperature in fahrenheit. You will only have one temperature to convert.
|
|
Sequence, Input, Printing, If - Else, Pre-Test loop
Create a Warnier-Orr diagram with a Pre-Test loop that will read in an arbitrary amount of records of name and age. Program will
print the name from each record. The program will continue to read the record until the End of File marker has been read or until the age is
greater than 65. At the end of the program, the program will print out the count of records that where read.
|
|