Tuesday, March 1, 2011

RoboPro Counter and Sub-Program (Double Post)

Here is my counter program which has been turned into a sub-program:




Here is the sub-program


The benefits of using sub-programs are easily repeatable code segments, organization and making complex programs simple.

Flow Chart

Flow charting is similar to using a map to plan out travel because it is mapping out all the possibilities of a situation and giving you results to them depending on the inputs you put into the chart.

How to Tell if You are Famous

The Robotic Carriage

Here is a work in progress before we finished our final product above.







The conclusion:
Describe why it is important to have branches in programs.
It is important to have switches in the program so that you can account for different changes in the scenario.


Describe an everyday application of a normally closed switch that has not been given as an example.
A main use for open switches in everyday life is for alarms. The magnets cause theswitches to go off in multiple ways to provide for the greatest security possible.



Describe an everyday application of a normally open switch that has not been given as an example.
A great example of this is a doorbell, when you press the switch, the bell rings.





Here is the program flow chart and the final design: