1. You have been contracted to design a system for a smart car. The company installed four laser radars on the car’s corners to use as sensors, for the car to be able to avoid collisions at the rear, and the front.
a. Using a flowchart, show the algorithm for the car collision avoidance system.
b. Using any recommended programming language of your choice, write a source code for the car collision avoidance system.
Answer: b. Application:
Transfer (CAR1, Seller, Buyer);
Transfer (car, buyer, seller);
Ca r +owner=buyer;
Update (car, properties);
Car + color=properties + color
Transfer (CAR2, Seller, buyer);