Code in Python Pycharm....Physical Programming Simulator which has switch, LEDs (rled, yled, gled, bled), temp, light as the sensor.
You are working for a marketing company that is trying to demonstrate the importance of paying attention while driving. The campaign is geared towards showing the devastating power that distraction, for example texting while driving, as well as alcohol and drugs has on the reaction time of a driver.
Question: Operating a motor vehicle at high speeds is dangerous, however do you know how your reaction time can prevent or encourage you from having an accident?
Braking Distance Factors
Question: How about when drugs or alcohol are involved, how does this inhibit your reaction time?
How Alcohol Impairs You
You have been tasked with creating a reaction time simulator for demonstration purposes.
Requirements and Information:
Once the demonstration starts it shall welcome the user and explain how the simulation works.
It shall wait for the user to press enter to continue
The application should randomly light up an LED between 5 and 10 seconds after the start of the simulation.
Record how long it takes after the light turns on for the user to press the button
If the user reacted in an acceptable time limit display a “green” light, otherwise a "red" light.
What to Submit:
Upload the source file for the application.
Upon Completion You Should:
Be able to use conditions and buttons to simulate real world events.
Use the random module.