Thursday, February 9, 2012

3.1.4 Branch Programming

This worksheet is quite interesting, it displayed some very intriquing programs and functions made with simple ideals in mind.


Conclusion:

1. Describe why it is important to include branches in programs.
Branches allow for flexibility in programs, and allow for code to be altered without changing the whole program. Branches create different outcomes with the same basic code, creating an efficient and simple system.

2. Describe an everyday application of a normally open switch that has not been given as an example.
A refridgerator door is a normally open switch because when you open the door, triggering the switch, the light turns on.
3. Describe an everyday application of a normally closed switch that has not been given as an example.
A normally closed switch is a paintball gun. When you hit the microswitch, the solenoid opens and the bolt is shot forward.

No comments:

Post a Comment