cs-361: control structures week 4

7
scis.regis.edu [email protected] CS-361: Control Structures Week 4 Dr. Jesús Borrego Lead Faculty, COS Regis University 1

Upload: damian-gaines

Post on 31-Dec-2015

37 views

Category:

Documents


0 download

DESCRIPTION

CS-361: Control Structures Week 4. Dr. Jesús Borrego Lead Faculty, COS Regis University. Topics. Homework #3 review Key Terms Chapter 4 (pp. 195-206, 209-223, 225-232) Switch statements Function implementation Sample program Mid-Term Exam. Homework 3 Review. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: CS-361: Control Structures Week 4

scis.regis.edu ● [email protected]

CS-361: Control StructuresWeek 4

Dr. Jesús BorregoLead Faculty, COSRegis University

1

Page 2: CS-361: Control Structures Week 4

Topics

•Homework #3 review•Key Terms•Chapter 4 (pp. 195-206, 209-223, 225-

232)▫Switch statements▫Function implementation▫Sample program

•Mid-Term Exam

2

Page 3: CS-361: Control Structures Week 4

Homework 3 Review

• Program 15, page 245 in the textbook• Use coding standards• Review inputs and outputs• Submit Word documentation• Submit to WorldClass/Desire to Learn before

week 4

3

Page 4: CS-361: Control Structures Week 4

Key Terms

• Compound statements – sentencias compuestas• Nested IF – IF anidado• Order of precedence – órden de precedencia• Short circuit evaluation – evaluación

cortocircuito

4

Page 5: CS-361: Control Structures Week 4

scis.regis.edu ● [email protected]

C++ Programming: From Problem Analysis to Program Design, Fifth Edition

Chapter 4: Control Structures I (Selection)

5

Page 6: CS-361: Control Structures Week 4

Switch statement

• MenuProgram1 (if)• MenuProgram2 (switch)• Functions• Complete program• Repeat execution

6

Page 7: CS-361: Control Structures Week 4

MidTerm

•Take home•Must submit by midnight Sunday,

September 29, 2013•Submit Word document with answers to

questions, source code (CPP) file, and screen captures per the instructions

7