Placeholder Image

Subtitles section Play video

  • behind all of the software that we use on a daily basis.

  • There's a code being run with all sorts of different terms and symbols.

  • Surprisingly, it can often be broken down into three simple programming structures called sequences, selections and loops.

  • These come together to form the most basic instructions and algorithms for all sorts of software.

  • A sequence is a Siris of actions that air completed in a specific order.

  • Action one is performed, then action two, then three, etcetera, until all of the actions in the sequence have been carried out.

  • A sequence we do every day is a morning routine.

  • You might wake up, drink some water, take a shower, eat breakfast and so on.

  • Everyone's routine is different, but they're all made up of a sequence of various actions.

  • Selections are a bit different.

  • Instead of following a specific order of events, they ask a question in order to figure out which path to take Next.

  • Let's say you go to brush your teeth and you find that you're out of toothpaste.

  • You then ask, Do I have any more toothpaste?

  • If the answer is no, then you would add it to your shopping list.

  • But if the answer is yes, then you would just use the toothpaste.

  • This is really all a selection is doing.

  • Answering a question based on what it finds.

  • The third programming structure is a loop like selections.

  • Loops also ask questions.

  • However.

  • The difference is, they ask the same question over and over and over again until a certain task is complete.

  • For example, take the act of hammering a nail.

  • Even though you may not realize it, you're constantly asking yourself.

  • Is the nail all the way in when the answer is no, you hammer the nail again.

  • You continue to repeat this question until the answer is yes, and then you stop loops.

  • Allow programmers to efficiently code repetitive tasks instead of having to write the same actions over and over again.

behind all of the software that we use on a daily basis.

Subtitles and vocabulary

Operation of videos Adjust the video here to display the subtitles

B1 sequence toothpaste nail answer programming question

Computer Science Basics: Sequences, Selections, and Loops

  • 0 0
    林宜悉 posted on 2020/10/23
Video vocabulary