Lab 8.1 – Pseudocode For Loop and Accumulation

Lab 8.1 – Pseudocode For Loop and...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the 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

This note was uploaded on 08/03/2013 for the course PT 1420 taught by Professor Brown during the Winter '12 term at ITT Tech Pittsburgh.

Page1 / 6

Lab 8.1 – Pseudocode For Loop and...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online