Basic HTML Version

|  | Table of Contents |  | View Full Version

Page 62 - 2625 PortGPt V2.1
P. 62

    3                       Introduction to Coding

                              Learning Outcomes
                           Introduction                                             Traffic Light

                           Where else do we see Applications of Coding?             What Exactly is Coding?
                           What is a Programming Language?

                      INTRODUCTION

                      In your day to day life, you must have come across the term                                  Stop
                      'coding'. 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.

                                                                                                                  Wait
                      TRAFFIC LIGHT
                      While going to school, you must have seen a traffic light.

                      Traffic lights  are devices that control the traffic  through  the                           Go
                      use of colours. These lights  are placed at road intersections,
                      pedestrian crossing for smooth traffic flow.

                      How do traffic lights work?
                      In  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.

                                               Coding fact

                        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.

                      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.

                      60    Premium Edition-VI

| 57 58 59 60 61 62 63 64 65 66 67 |