Exercise - Car Collision Warning
Your work
Write a program that it gives warning sound if distance is too low (collision warning).
You may need
- For statements
- If...Else statements
Solutions
TI-Basic Code
Send "CONNECT RANGER 1 TO IN 1"
Wait 1:For n,1,50
Send "READ RANGER 1"
Get a
If a<0.3 Then
Send "SET SOUND 400 TIME 1"
EndIf
Disp a
Wait 0.2
EndFor
Notice: You can't copy-paste it because it includes HTML formattings