208 Day 02 Prog Concepts

208 Day 02 Prog Concepts - 4002-208 Introduction to...

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

View Full Document Right Arrow Icon
4002-208 Introduction to Programming Day 02 Programming Concepts
Background image of page 1

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

View Full DocumentRight Arrow Icon
Objectives Review of standard programming constructs or program flow of control What is an algorithm? 4002-208 2
Background image of page 2
Program Flow Sequence: execution of instructions in the order written Input/Output statements Assignment statement Selection: execute one of a set of instructions if statements – selects one of two alternatives based on a Boolean (true or false) condition. switch – selects one of multiple alternatives based on the value of an integer or character [really a small integer]. 3 4002-208
Background image of page 3

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

View Full DocumentRight Arrow Icon
Program Flow (cont.) Repetition: repeating a group of instructions with control while loop: repeat a group of instructions while a condition is true (2 varieties) for loop: repeat a group of instructions a specified number of times 4 4002-208
Background image of page 4
Data Organization Simple Variable: holds one typed value. Selection by name. Array: holds a collection of values of the same type. Selection by position number.
Background image of page 5

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

View Full DocumentRight Arrow Icon
Image of page 6
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 17

208 Day 02 Prog Concepts - 4002-208 Introduction to...

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

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