6.2Top-Down Design157just press the return key if there is no data for an item. We need to enclosethese instructions within a loop.Determining when there are more names to enter is easy in a by-hand algo-rithm: The stack of papers and cards is empty. Determining how to do it ina computer algorithm is more difficult. Let’s assume that the level of detailis sufficient.What doWriteandReadmean? These are special words that we use withalgorithms to stand for “put information on the screen” and “get the datathat the user has entered.” Remember from the discussion of von Neumannmachines that there are input devices, which allow us to enter data from theoutside world into memory, and there are output devices, which allow us todisplay data so that the world outside the computer can see it.We have used some shorthand in this subalgorithm that needs clarifying.We have called the information about a person name. Name is actually acollection of four pieces of data, called fields. We use the following names
This is the end of the preview.
access the rest of the document.