Question: Create a program that simulates the decisions needed when a self-driving automobile makes a left turn at a traffic light. The decision on whether to
Create a program that simulates the decisions needed when a self-driving automobile makes a left turn at a traffic light. The decision on whether to turn is to be based on the following conditions: What is the traffic light color? Red, Yellow, or Green? Is there oncoming traffic? Is the turn signal currently set to indicate a left turn, a right turn, or is it off? Required program input: The program is to take relevant input from the user at each decision point regarding the current condition in question. The program should produce the following output: At the end of the program, the program outputs whether the self-driving auto has decided to turn or has decided to wait.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
