×
 Introduction
Introduction to Newbie Programmer Series Introduction to Computer The Computer Programming Language Setting up the Computer for Programming
 Lets Get Started !
Beginning C Programming Variables a Handbag ! Basic Variable types in C Basic Formatted Output Basic Formatted Input
 Loops
Looping Repeating Concept Different Kinds of Loops Advanced concepts and trick with Loops
 Operators
Operators, An Introduction Arithmetic Operators Relational Operators Logical Operators Bitwise Operators Miscellaneous Operators and Operators Precedence
 Controlling the Flow
Flow Charts Conditional Statements Using Goto and Label Break and Continue the loops Switch the Cases Some Practical Applications of Control Flow
 The program structure
The program Structure Functions More Concepts of Functions Scope of the Variables across functions How the C language itself Works ? Scope of the Variables across files Static Variables Auto and Register Variables #define PreProcessor Some more PreProcessors
 Arrays and Structures
Introduction to Arrays Arrays, some more Concepts Arrays, Cool Examples Structures Introduction Structure, Some more Concepts Structure, Some Examples
 File Management
Basics of File management in C Steps Involved with File Handling in C
 Miscellaneous
Inside Logic Gates – The Electronic Logic Binary Number System Mathematical Reasoning
Newbie Programmer
full book coming soon
by Shubham Ramdeo

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.

Flow Charts are simply the Graphical representation of the logical steps we use from problem to the solution. They are used to simplify and make the steps easy to understand. It's the programming in the graphical way. They will make our understanding of Controlling the Flow of the program more clear.
So lets discuss some of them. In the picture below, I have given some most basic shapes of flow charts.  There are a lot of them but I think these four are enough for us. Click on the picture below to expand it.

Flow Charts

 Now what do we have :
  1. Ellipse : Its like the checkpoints. Through here the program starts and ends.
  2. Arrow : They simply represent the flow of the steps. We have to follow the arrows.
  3. Rectangle : Here we do some process. Here a some function or task is to be done,
  4. 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.

  1. Hello World

  2. Even Number Test, it contains a Loop. Repeat until you enter an even number.

  3. 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.

Any doubts ? Meet me at twitter @ramdeoshubham

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.

© Shubham Ramdeo

Site Map
with
© Shubham Ramdeo