1. You have been contracted to design a system for a smart car. The company installed four laser radars on

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:
Select=ORG1;
Buyer=ORG2;
}

Transfer (CAR1, Seller, Buyer);
Car contract;
Query(car);
Get (car);
Return car;
Transfer (car, buyer, seller);
Get (car);

Ca r +owner=buyer;
Put(car);
Return car;
Update (car, properties);
Get (car);
Car + color=properties + color
Put (car);
Return car;
}

Application
Seller=ORG2;
Buyer=ORG1;
Transfer (CAR2, Seller, buyer);
}

Leave a Reply

Your email address will not be published.