Conditional Statements
Have you ever played a computer game? Computer games and other programs are written in special computer programming languages. Some of those languages rely on statements of the form "If-then" to make certain elements work. For example, you may write a program that simulates playing basketball. You would need to tell the computer that if a basket is made, then the score should increase by 2 points. Of course, computer programmers take courses to learn the precise languages of computer programming. In this section, you will learn about some of the basic elements on which some of these programming languages are based and apply them to geometry examples.
A conditional statement is written in if-then format. |
Example: Conditional Statements
Let's work through an example of conditional statements. Select the play button to begin the example, and then use the solve button to view the solution and use the navigation buttons to pause/stop the example. View the presentation as often as you would like, and take notes as you follow along. Be sure to set your volume at a reasonable level before you begin.