That's how the logic of computer can be drawn using Flow Charts !
Welcome to Newbie Programmer Series, we ended Operators topic with a huge boredom, anyways, it's finally ended and here I start our new topic, Controlling Flow. We will learn how to control the flow of our programs based on the conditions and cases. Yes, loops are a part of it but I did it separately to teach you the basics. This topic is going to be very interesting, because now we can learn to implement programs over real life problems. If you are new to this series, please go to the index(click here) and read out all the previous parts so that you can easily understand what is going on below.
I welcome you on my site. I am writing this post. I am doing certain tasks, what I want to. Computers too, do the tasks we want them to do. And for that, we do programming. But sometimes, the issues are complex and we have to divide our tasks with step wise Algorithms. Thinking such complex processes in head and programming them directly is a hard thing to do. So therefore, we use Flow Charts To make our tasks easy to understand.
- Ellipse : Its like the checkpoints. Through here the program starts and ends.
- Arrow : They simply represent the flow of the steps. We have to follow the arrows.
- Rectangle : Here we do some process. Here a some function or task is to be done,
- Rhombus : Here we decide the further flow based on the conditions. Like do A if Yes and do B if No etc.
Lets do some basic Examples. I have put a lot of images below, Just click them.
- Hello World
- Even Number Test, it contains a Loop. Repeat until you enter an even number.
- When you make food, you need to trouble shoot in the Shop.
I am just doing simple things. You can make as many complex algorithms you want. Search on google "great flow charts" you will find great examples of it.
I have tough you the simple basic flowcharts so that from now, while playing with "what to program" the flowcharts will keep us on the flow.
That's it for today. In the next part, we will discuss the if else statements that can help us to control the flow using logic.
Please share this post as much as you can so that we can get connected to more geeks who wants to learn programming but have no clue. Thanks for reading :) (c)Shubham Ramdeo, All rights reserved.
Please share this as much as you can so that we can get connected with more and more people who want to learn programming.