CS 1400 Lab #16: Boolean Expressions


Objectives:

This lab has a couple of important objectives:

  1. To help you understand and correctly write if and if/else statements.
  2. To help you understand and correctly write Boolean expressions.

After completing this lab, you should be able to develop solutions to simple computational problems that use branching based on the testing of some conditions in the program, and you. should be able to write a C# program that correctly uses if and if/else statements.

Study Material

  1. Diagramming an if statement
  2. Boolean Expressions
  3. De Morgan's Law
  4. Activity Diagrams

Programming Exercise

Should I go to work?