Be A programmer in Steps

Slides:



Advertisements
Similar presentations
PSEUDOCODE & FLOW CHART
Advertisements

Reference :Understanding Computers
ITEC113 Algorithms and Programming Techniques
Chapter 3 Planning Your Solution
The Program Design Phases
Review Algorithm Analysis Problem Solving Space Complexity
Algorithm & Flowchart.
ALGORITHMS AND FLOWCHARTS
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANCI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Algorithm & Flow Charts
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
1 Computer Programming (ECGD2102 ) Using MATLAB Instructor: Eng. Eman Al.Swaity Lecture (4): Control Flow (Chapter 2)
Flowcharts.
ALGORITHMS AND FLOWCHARTS CSCI 105 – Computer Fluency.
Dale Roberts 1 Program Control - Algorithms Department of Computer and Information Science, School of Science, IUPUI CSCI N305.
Basic Control Structures
Basics of C Session 1. Elementary Programming with C/Session 1/ 2 of 26 Objectives  Differentiate between Command, Program and Software  Explain the.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
1 Program Planning and Design Important stages before actual program is written.
CS 240 – Computer Programming I Lab Kalpa Gunaratna –
Structured Programming (4 Credits)
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
Problem, Problem Solving, Algorithm & Flow Charts –Part 1 Presented By Manesh T Course:101 CS 101CS Manesh T1.
A Level Computing#BristolMet Session Objectives#U2 S3 MUST use/read programme flow charts accurately SHOULD adapt the calculator programme to include a.
Algorithms and Pseudocode
STEP 3- DEVELOP AN ALGORITHM At this stage we break down the problem into simple manageable steps so that they can be handled easily.
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
Introduction to Flowcharts
Flow Charts And Pseudo Codes Grade 12. An algorithm is a complete step-by- step procedure for solving a problem or accomplishing a task.
Lecture 3 Computer Programming -1-. The main steps of program development to solve the problem: 1- problem definition : The problem must be defined into.
 Problem Analysis  Coding  Debugging  Testing.
Algorithms and Flowcharts
Pseudocode (pronounced SOO-doh-kohd)  is a detailed yet readable description of what a computer program or algorithm must do, expressed in a formally-styled.
Chapter One Problem Solving
Learning outcomes 5 Developing Code – Using Flowcharts
ALGORITHMS AND FLOWCHARTS
A451 Theory – 7 Programming 7A, B - Algorithms.
Algorithm & Flow Charts Week 1
Lesson 2 Flowcharting.
Programming Languages
Chapter One Problem Solving
Problem , Problem Solving, Algorithm & Flow Charts –Part 1
Computer Programming.
C Programming Hardik H. Maheta.
Chapter 2- Visual Basic Schneider
CS1001 Programming Fundamentals 3(3-0) Lecture 2
Algorithms and Flowcharts
Lecture 2 Introduction to Programming
Numbering System TODAY AND TOMORROW 11th Edition
Introduction to Algorithm – part 1
Programming Fundamentals
Creating Flowcharts AIM:
Welcome In The World Of ‘C’.  TEXT BOOK: Programming in ANSI ‘C By: E Balagurusamy. TMH  Reference Books: 1) The ‘C Programming Language By: Kernighan.
ALGORITHMS AND FLOWCHARTS
Unit# 9: Computer Program Development
Computer Programming LAB 1 Tejalal Choudhary Asst. Prof, CSE Dept.
PROBLEM SOLVING CSC 111.
1) C program development 2) Selection structure
ALGORITHMS AND FLOWCHARTS
Chapter 2- Visual Basic Schneider
Introduction to Algorithms and Programming
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Chapter 2- Visual Basic Schneider
ME 142 Engineering Computation I
Developing a Program.
Basic Concepts of Algorithm
Chapter 3: Selection Structures: Making Decisions
Presentation transcript:

Be A programmer in 1 2 3 Steps Learn C in 3 Steps Be A programmer in 1 2 3 Steps Abhilash Badami

Steps Step 1 : Know the History of C Language Step 2 : Why only C Language Step 3 : Simple Problems Solving and Fun with Maths

History of C language Many of the important ideas of C stem from the language BCPL, developed by Martin Richards. The influence of BCPL on C proceeded indirectly through the language B, which was written by Ken Thompson in 1970. In 1972 Dennis Ritchie at Bell Labs writes C and in 1978 the publication of The C Programming Language by Kernighan & Ritchie caused a revolution in the computing world.

Know more about C C language is a case sensitive language. C language is an user defined language with large instruction sets. C language uses compiler for convertion of code. C language is a syntax oriented language.

Why only C Language To learn the programming in c First you should know about the logic of it. What is Logic then ? Logic is the problem solving Method which the programmer will use before Writing the Program.

There are two types of problem solving Methods 1. Flowchart 2. Algorithm What is Flowchart then ? Diagrammatic representation of the given problem Statement. What is Algorithm ? It is the Step by step representation of the given problem Statement. Can we Solve a Problem With the Help of Flowchart and Algorithm ? What is your answer ?

But in Math's We solve problems using Numbers But in Math's We solve problems using Numbers ? Why flowchart and algorithm in “C” Flowchart and algorithm are the two simple methods which will help the programmer to program the problem statement in C. C language helps only to solve Mathematical Problems ? No it also helps in solving the logical as well as ratios and many more.

Let us know more about Flowcharts As we said flowcharts are the diagrammatic representations. Does it include circles , squares and rectangles? Ans : Yes Let us know which shape will do what action

= This shape indicates the Beginning and end of Flowchart ie: Start and End. = This shape indicates the continuity of the flow chart. = This shape indicates the decision making statements. = This shape indicates the steps. = This indicates the action = Connecting Lines

Do you know about this symbols ..? * Asterix - Used for multiplication operation / division slash – used for division operation Can you identify this symbols ‘ + ‘ ‘ - ’ % Modules – used for division with reminder options

Let us solve a simple problem using Maths logic Add two numbers Sol :- let a=5 and b=11 sum= a+b sum= 5+11 sum= 16

Now we will solve the same problem using Flowchart This Indicates the beginning of Flow Chart Start Where as both shapes indicates some action that is Input to PC Input A=5 Input B=11 Arithmetic and logic operations are performed here Sum = A+B Print Sum As we saw above this indicates action that is output Indicates End of Flow Chart END

Which is easy method of solving a problem ? Yes C language is Easier than Math's Correct….!! Ok , can we work on some other questions like this Are you ready …???

Find the solutions for this questions Draw a flow chart for subtraction Draw a flow chart for division Draw a flow chart for multiplication Draw a flow chart for finding square of a number Draw a flow chart for finding cube of a number

Flow chart for subtraction Start Input A=10 Input B=05 Sub = A - B Print Sub END

Flow Chart for Division Start Input A=10 Input B=05 div= A/B Print Div END

Flow Chart for Multiplication Start Input A=3 Input B=5 mul= A*B Print Sum END

Flow chart for finding square of number Start Input A=5 Square = A*A Print squ END

Flow Chart For finding Cube of number Start Input A=5 Cube= A*A*A Print Cube END

Yes I know you are thinking about Logical Problems right….!! For solving Logical Problems we need to know about IF and ELSE statements. Yes IF and ELSE statement are nothing like true or false statements IF refers to : IF statement 1 is true print statement 1 ELSE print statement 2

Confused …!! Let me Explain Assume two values as A=5 and B=6 now we have to find biggest number between A and B If A>B print A is Big Number Else Print B is Big Number

Let us put the same problem in flow chart This Indicates the beginning of Flow Chart Start Where as both shapes indicates action that is Input to PC Input A=05 This Indicates Decision making of the input problem Input B=06 If A is greater it prints A is big If A>B Else Print A is big Print B is big If B is greater it prints B is big True False What does this Indicate ? END

Still Confused … !! Ok let me explain with different example Start Input A=10 Input B=03 If A>B Else Print A Print B True False END

Is there a way such that we need not to use IF and Else Statements …?? Yes we have some special instructions or operations such that if and else statements can be avoided. If we have such instructions then why do we need IF and ELSE statements. Because to Solve complex programs we need the help of IF and ELSE statements.

Take a look at this Flow Chart Logic of this Flow Chart Both inputs A and B are taken first Use the special operation (A>B)? This operation has an in built commend of IF and ELSE statement. It compares first a>b or not If it is greater then it prints A is big Else it goes to next step where it prints B is Big Start Input A=05 Input B=06 Big = (A>B)? Print A is big Print B is Big END

Now you have to tell me answer for this Start What is your Answer What does the computer print ..? Input A=10 Input B=06 Big = (A>B)? Print A is big Print B is Big END

END OF SESSION 1 Find Interesting topics in up coming sessions Know about while loop , for loop , do while loop . Know more about writing algorithms Be a programmer…!!!

Future Projects

BE A HACKER All About Ethical Hacking Encode Decode Hack….!!! Abhilash Badami

Thank you Q & A