Question:
a) Consider a car having a collision detection mechanism. Write an algorithm (in simple English) to illustrate the collision detection mechanism.
b) The same car is equipped with anti-slip braking system. Write an algorithm for the braking system.
c) The car has also an automatic light system. When traveling at night or in a dark tunnel, light gets on automatically. Write an algorithm for the automatic light system.
d) An automatic parking function is also included in the car. Write an algorithm for the automatic parking system.