This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: ages. Declare Name As String Declare Age As Integer Repeat Write "Enter the name of your brother or sister: " Input Name Write Name Write “Enter the age of “ Name: Input Age Write Age Until Name == "Done" Question to all What is an "Infinite loop"? Write an example of pseudocode using "Repetition Structures" that generates an infinite loop An infinite loop is a loop that has a condition that is not met, so it causes the loop to continue to run and not exit. Declare Number, Total As Integer Repeat Write "Please enter a number: " Input Number Total = Number + 1 Write Number Until Number == “0” Question to all To illustrate the difference between assignment operator (=) and comparison operator (==), do the followings. . Create a one line of programming code for each type of operator Comparison operator: IF age is more than 18, THEN write "I can vote" Assignment operator: My age is 19. IF Age > 18 Then Write "I can vote" Let Age = 19...
View Full Document
- Fall '08
- Computer Architecture, relational operator, repetition structure, Integer Repeat Write