Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 80 - 2632_CodeMind
P. 80

    In your day to day life, you must have come across the term 'coding'.                        Stop
                     Have you wondered what it means. In this chapter, you are going to
                     learn what is coding and its usage in day to day life.
                     What is a Traffic Light System?                                                             Wait

                     While going to school, you must have seen a traffic light.
                     Traffic lights are devices that control traffic through the use of colours.
                                                                                                                  Go
                     These lights are placed at road intersections and pedestrian crossings
                     for smooth traffic flow.

                     How do Traffic Lights Work?

                     In  a  traffic  light,  the  lights  cycle  through  green  (allows  traffic  to  proceed  in  the  direction
                     denoted), yellow (warns that the signal is about to change to red), and red (stops traffic from
                     proceeding) at regular intervals of time. Traffic lights help to prevent accidents and congestion
                     on the roads.
                     How do the Traffic Lights Change Automatically?

                     Traffic lights contain sensors which are programmed to calculate how many cars or pedestrians are
                     present at a specific point.

                     At regular intervals of time, the code automatically changes the traffic signals to show colors (red,
                     yellow, green).

                              John Peake Knight invented the first traffic light, after that William Potts
                              invented the modern three-lens traffic light and Garrett Morgan invented the
                              first automatic traffic light.

                     Where Else do We See Applications of Coding?

                     These days, a lot of our daily lives rely on coding. We are somehow connected through coding. For
                     example, smartphones, computers, videogames, car dashboards, etc., are all using some sort of
                     code to perform their tasks.

                             Bar code scanner                    Booking tickets                       Printer

                                                                                        Using MakeCode Arcade     79

| 75 76 77 78 79 80 81 82 83 84 85 |