Chapter 03 - An Introduction To Object Oriented Programming...

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

View Full Document Right Arrow Icon
An Introduction To Object Oriented Programming Chapter 3 Making Decisions
Background image of page 1

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

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 2 Understanding Logic-Planning Tools and Decision Making Pseudocode Tool that helps programmers plan a program’s logic by writing plain English statements Flowchart You write the steps in diagram form, as a series of shapes connected by arrows Sequence structure One step follows another unconditionally Sometimes, logical steps do not follow in an unconditional sequence
Background image of page 2
Microsoft Visual C# 2008, Third Edition 3 Understanding Logic-Planning Tools and Decision Making (continued)
Background image of page 3

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

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 4 Understanding Logic-Planning Tools and Decision Making (continued) Decision structure Involves choosing between alternative courses of action based on some value within a program All computer decisions are yes-or-no decisions When reduced to their most basic form
Background image of page 4
Microsoft Visual C# 2008, Third Edition 5 Understanding Logic-Planning Tools and Decision Making (continued)
Background image of page 5

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

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 6 Making Decisions Using the if Statement If statement Used to make a single-alternative decision Block One or more statements contained within a pair of curly braces
Background image of page 6
Microsoft Visual C# 2008, Third Edition 7 Making Decisions Using the if Statement (continued)
Background image of page 7

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

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 8 Making Decisions Using the if Statement (continued)
Background image of page 8
Microsoft Visual C# 2008, Third Edition 9 Making Decisions Using the if Statement (continued)
Background image of page 9

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

View Full DocumentRight Arrow Icon
Microsoft Visual C# 2008, Third Edition 10 Making Decisions Using the if Statement (continued)
Background image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 12/29/2010 for the course BUSI 12345 taught by Professor Mm during the Spring '10 term at Prince Sultan University.

Page1 / 33

Chapter 03 - An Introduction To Object Oriented Programming...

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

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