Unformatted text preview: is how programming languages ask questions. These statements are called assertions or conditions . When we are writing algorithms, we make asser-tions in English-like statements. When the algorithms are translated into a high-level programming language, the English-like statements are rewritten as Boolean expressions. Fill in missing data Level 1 Write “To any of the prompts below, if the information is still not known, just press return.” Get a name from the list While (there are more names) Get a lastFirst Write lastFirst If (street is missing) Write “Enter street number and name; press return.” Read street If (telephone is missing) Write “Enter area code and 7-digit number; press return.” Read telephone If (e-Mail is missing) Write “Enter e-mail; press return.” Get a name from the list...
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.
- Fall '10