PT1420

Introduction to Programming

Week 6 (July 18, 2016)
Units 5 and 6: Decisions

Learning Objectives
  • Write programs that use conditional statements to solve problems.
Learning Outcomes
  1. Use flowcharts and pseudocode to represent Boolean conditions.
  2. Apply the concept of nesting conditions to computer programs.
  3. Use if-then, if-then-else, and case structures in a computer program.
  4. Compare strings using the program language.
  5. Use Boolean variables and logical operators in computer programs.
  6. Use compound logical conditions.
Key Concepts
  • Decision structures
  • Flowcharting and pseudocode to represent Boolean conditions
  • Nesting of conditions
  • String comparisons
  • If-then and if-then-else
  • Boolean variables and logical operators
  • Compound logical conditions
  • Case structures
Assigned Reading
  • Unit 5: Gaddis, Chapter 4: pages 115-142, and 147-155.
  • Unit 6: Gaddis, Chapter 4: pages 143-147.
Keywords
  • Decision structure
  • If statement
  • If-Then-Else statement
  • Dual alternative decision structure
  • If-Then-Else If-Else statement
  • Relational operators
  • Boolean expression
  • String comparison
  • Nested decision structures
  • Logical operators
  • Boolean variables
  • Case structure
  • Select-case-default statement
Assignments and Study Materials
  • Unit 5
    • Unit 5 Lecture Slides
    • Unit 5 Assignment 1: Homework
    • Unit 5 Research Assignment 1: Exploring Why and When to Use Shell Scripts
    • Unit 5 Lab 5.1: Evaluating Conditions with Relational Operators
    • Unit 5 Lab 5.2: Evaluating Conditions with Logical Operators
    • Unit 5 Lab 5.3: Pseudocode
    • Unit 5 Lab 5.4: Flowcharts
    • Unit 5 Lab 5.5: Visual Basic
  • Unit 6
    • Unit 6 Lecture Slides
    • Unit 6 Assignment 1: Homework
    • Unit 6 Research Assignment 1: Advantages and Disadvantages of Using Case Structures
    • Unit 6 Lab 6.1: Pseudocode
    • Unit 6 Lab 6.2: Flowcharts
    • Unit 6 Lab 6.3: Visual Basic Programming Challenge
    • Unit 6 Midterm Exam: Exam I
Questions and Feedback
Use the form below to ask questions or provide feedback about the concepts covered during Week 6's session of class:

Your browser is out-of-date!

You need to update your browser to view Foliotek correctly. Update my browser now

×