This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Scott Cumston 2/14/2013 PT1420 Thursday 165 Introduction to Programming Instructor: David Brown Lab 8 Repetition Structures II Lab 8.1 Pseudocode: For Loop and Accumulation Step 2: Explain what you think will be displayed to the screen in step 1: The display will show The hour is 1., The hour is 2..The hour is 24. Step 3: Constant Integer MAX_MINUTES = 60 Declare Integer minutes For minutes = 1 to MAX_MINUTES Display Minute #, minutes End For Step 4: Constant Integer MAX_SECONDS = 60 Declare Integer seconds For seconds = 1 to MAX_SECONDS Display Second #, seconds End For Step 6: This program will display 2, 4, 6, 8, 10 Step 7: Constant Integer MAX_VALUE = 200 Declare Integer counter For counter = 20 to MAX_VALUE Step 20 Display The number is, counter End For Scott Cumston 2/14/2013 PT1420 Thursday 165 Introduction to Programming Instructor: David Brown Lab 8 Repetition Structures II Step 9: The program will display the Student # 1 and then repeat the process for each iteration until the maximum...
View Full Document
- Winter '12