160 likes | 191 Views
Practice setting up intersection traffic rules using IF-THEN statements. Explore nested conditions and model different scenarios. Learn to flowchart and implement in Excel.
E N D
1B 2A 2B 1A Traffic Scenario
How would you set up the intersection? An exercise in Monday morning quarterbacking
IF-THEN Statements • If, Then, Else (a.k.a. Otherwise) • What is your procedure? • In excel this is written as : • IF(Condition, True Value, False Value)
Sample Problem 1 • If a driver is going over 65 mph a speeding ticket should be issued.
Sample Problem 1 Speed > 65 Yes No Issue Ticket No Ticket
Nested IF-THEN Statements • What if you have a second condition? • IF(Cond, True ,IF(Cond, True, False))
Sample Problem 2 • If a driver is going over 65 mph or under 45 mph a speeding ticket should be issued.
Sample Problem 2 Speed < 40 Yes No Issue Ticket Speed > 65 Yes No Issue Ticket No Ticket
Directions • Break the problem into steps and verbalize what you want to do with your partner. • Draw a flow chart that outlines your solution • Add columns to your spread sheet and perform to perform the necessary calculations in stages
Possible Connections • Nature of Science • Scientific Method • Objective Experimentation and Observation.