Dale - Computer Science Illuminated 186

Dale Computer - While more names Write Read Write Read Print the list Write “The list of names addresses telephone numbers and e-mail addresses

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
6.2 Top-Down Design 159 The last module is Print the list . This task requires us to loop through the list, printing each item. Here is the tree structure for this algorithm. The tasks in blue need to be further specified in a module at a lower level. Enter name into list Fill missing data Put list into alphabetical order Print the list Write. .. Get. .. While. .. Prompt for and enter names Insert names into list Put. ..
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: While more names Write. .. Read. .. Write Read . . Print the list Write “The list of names, addresses, telephone numbers, and e-mail addresses follows:” Get a name from the list While (there are more names) Write lastFirst Write street Write cityState Write e-Mail Write a blank line Get a name from the list Put list in alphabetical order Level 3 Sort list on lastFirst field...
View Full Document

This note was uploaded on 01/13/2011 for the course CSE 1550 taught by Professor Marianakant during the Fall '10 term at York University.

Ask a homework question - tutors are online