SlideShare a Scribd company logo
FUNDAMENTALS OF
  PROGRAMMING
PROGRAMMING PREPARATION
COMPUTER WORKS?
                             Machine Cycle




Programming- process of giving
instruction
Program – instructions provided
STEPS IN SOLVING COMPUTER BASED-
            PROGRAM
1. ANALYSE THE PROBLEM
2. DESIGN A SOLUTION /
   PROGRAM
3. CODE/ENTER THE
   PROGRAM
4. TEST THE PROGRAM
STEPS IN SOLVING COMPUTER BASED-PROGRAM

DESIGN A
 SOLUTION/PROGRAM
      1. ALGORITHM
      2. PSEUDOCODE
PROBLEM: To change the temperature in
Fahrenheit to Centigrade.
ALGORITHM:                      PSEUDOCODE:
1.   subtract 32                1.   Subtract the Value of F
2.   multiply the result in          to 32.
     (1) by 5                   2.   Then Multiply the
                                     answer by 5
3.   divide the result in (2)
                                3.   Next is divide the
     by 9                            result by 9 to get the
4.   write down the                  value of Centigrade
     answer.
STEPS IN SOLVING COMPUTER BASED-PROGRAM

DESIGN A SOLUTION/PROGRAM
Algorithm
  A step-by-step set of instructions for
 solving a problem in a limited number of
 steps. The instructions for each step are
 exact and precise and can be carried out
 by a computer.
  A logical procedure or set of steps to
 be followed to arrive at a solution to a
 problem.
 gives a solution to a particular problem
EXAMPLE OF ALGORITHM

PROBLEM: Find the sum of two numbers
ALGORITHM:
1.   Add the two numbers together
2.   Write down the answer.
EXAMPLE OF ALGORITHM

PROBLEM: To change the temperature in
 Fahrenheit to Centigrade.
ALGORITHM:              C = (F - 32) * 5/9
1.   subtract 32
2.   multiply the result in (1) by 5
3.   divide the result in (2) by 9
4.   write down the answer.
STEPS IN SOLVING COMPUTER BASED-PROGRAM

Pseudocode
 an algorithm in English statements in an
  outline form.
 is one of the methods that could be used to
  represent an algorithm
THREE METHODS USED IN CREATING AN
            ALGORITHM
STEPPING, LOOPING & CHOOSING
STEPPING
 This is where all the instructions needed to
  solve our problem are set out one after the
  other.
EXAMPLE OF ALGORITHM

PROBLEM: Find the average of four numbers
ALGORITHM:
1.   Add the four numbers
2.   Divide the result by 4 to get the
     average.
3.   Write down the answer

More Related Content

What's hot (20)

PDF
Writing algorithms
Krishna Chaytaniah
 
PPT
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft
 
PPT
Csc 130 class 2 problem analysis and flow charts(2)
Puneet narula
 
PPTX
Flowchart and algorithm
DHANIK VIKRANT
 
PPT
03 algorithm properties
Lincoln School
 
PPSX
Algorithm and flowchart
Sachin Goyani
 
PPT
Algorithm and Flowcharts
Sabik T S
 
PPTX
Algorithm & flowchart
saurabh sen sky
 
PPTX
Dynamic Programming: Smith-Waterman
Rohan Prakash
 
PPT
Introduction to Algorithms & flow charts
Yash Gupta
 
PPT
Algorithmsandflowcharts1
luhkahreth
 
PPTX
Algorithm and flowchart with pseudo code
hamza javed
 
PPTX
Basics of python
JayaShukla23
 
PPTX
Algorithm and flowchart
Elizabeth de Leon Aler
 
PDF
POLITEKNIK MALAYSIA
Aiman Hud
 
PDF
Lecture Note-2: Performance analysis of Algorithms
Rajesh K Shukla
 
PPTX
Flowcharts and algorithms
Student
 
PDF
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
PDF
POLITEKNIK MALAYSIA
Aiman Hud
 
Writing algorithms
Krishna Chaytaniah
 
Programming aids- Algorithm, Flowchart, Pseudocodes and Decision table
Anjali Technosoft
 
Csc 130 class 2 problem analysis and flow charts(2)
Puneet narula
 
Flowchart and algorithm
DHANIK VIKRANT
 
03 algorithm properties
Lincoln School
 
Algorithm and flowchart
Sachin Goyani
 
Algorithm and Flowcharts
Sabik T S
 
Algorithm & flowchart
saurabh sen sky
 
Dynamic Programming: Smith-Waterman
Rohan Prakash
 
Introduction to Algorithms & flow charts
Yash Gupta
 
Algorithmsandflowcharts1
luhkahreth
 
Algorithm and flowchart with pseudo code
hamza javed
 
Basics of python
JayaShukla23
 
Algorithm and flowchart
Elizabeth de Leon Aler
 
POLITEKNIK MALAYSIA
Aiman Hud
 
Lecture Note-2: Performance analysis of Algorithms
Rajesh K Shukla
 
Flowcharts and algorithms
Student
 
Algorithm defination, design & Implementation
Bilal Maqbool ツ
 
POLITEKNIK MALAYSIA
Aiman Hud
 

Viewers also liked (6)

PDF
Ankit tyagi pd portfolio
tyagispace
 
DOC
Vikas kumar cv
Vikas Kumar
 
PDF
Ankit tyagi pd portfolio
tyagispace
 
PDF
Ankit Tyagi PD Portfolio
tyagispace
 
PDF
AnkitTyagi Product Design Portfolio
tyagispace
 
PDF
Ankit tyagi product design portfolio
tyagispace
 
Ankit tyagi pd portfolio
tyagispace
 
Vikas kumar cv
Vikas Kumar
 
Ankit tyagi pd portfolio
tyagispace
 
Ankit Tyagi PD Portfolio
tyagispace
 
AnkitTyagi Product Design Portfolio
tyagispace
 
Ankit tyagi product design portfolio
tyagispace
 
Ad

Similar to Programming preparation_stepping Algorithm (20)

PPT
Program design and problem solving techniques
Dokka Srinivasu
 
PPTX
Algorithm Design and Problem Solving [Autosaved].pptx
KaavyaGaur1
 
PPTX
vingautosaved-230525024624-6a6fb3b2.pptx
Orin18
 
PPTX
Unit 1 c programming language Tut and notes
achiver792
 
PPTX
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
PPTX
Programming C ppt for learning foundations
ssuser65733f
 
PPT
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 
PPTX
Algorithm n problem solving x
laraibali21
 
PPTX
Programming
Dr. B T Sampath Kumar
 
PDF
2 introduction to computer programming
Nataly Medina
 
PPT
Introduction to problem solving in c++
Online
 
PPTX
Fundamentals of Programming Lecture #1.pptx
Eyasu46
 
PDF
Pseudocode By ZAK
Tabsheer Hasan
 
PDF
Algorithm.pdf
MIT,Imphal
 
PPTX
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
DOCX
Chapter 2(1)
TejaswiB4
 
PDF
LEC 5 [CS 101] Introduction to computer science.pdf
p87783936
 
PDF
Cse115 lecture03problemsolving
Md. Ashikur Rahman
 
PPTX
Pj01 1-computer and programming fundamentals
SasidharaRaoMarrapu
 
PPTX
Programming in C - Problem Solving using C
PoovizhiP1
 
Program design and problem solving techniques
Dokka Srinivasu
 
Algorithm Design and Problem Solving [Autosaved].pptx
KaavyaGaur1
 
vingautosaved-230525024624-6a6fb3b2.pptx
Orin18
 
Unit 1 c programming language Tut and notes
achiver792
 
Lec 2 -algorithms-flowchart-and-pseudocode1.pptx
AbdelrahmanRagab36
 
Programming C ppt for learning foundations
ssuser65733f
 
Problem Solving and Algorithm Design in Computer Science
RaviRaval36
 
Algorithm n problem solving x
laraibali21
 
2 introduction to computer programming
Nataly Medina
 
Introduction to problem solving in c++
Online
 
Fundamentals of Programming Lecture #1.pptx
Eyasu46
 
Pseudocode By ZAK
Tabsheer Hasan
 
Algorithm.pdf
MIT,Imphal
 
s-INTRODUCTION TO PROBLEM SOLVING PPT.pptx
ShamithRai
 
Chapter 2(1)
TejaswiB4
 
LEC 5 [CS 101] Introduction to computer science.pdf
p87783936
 
Cse115 lecture03problemsolving
Md. Ashikur Rahman
 
Pj01 1-computer and programming fundamentals
SasidharaRaoMarrapu
 
Programming in C - Problem Solving using C
PoovizhiP1
 
Ad

Recently uploaded (20)

PDF
Rapid Mathematics Assessment Score sheet for all Grade levels
DessaCletSantos
 
PPTX
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
PDF
TLE 8 QUARTER 1 MODULE WEEK 1 MATATAG CURRICULUM
denniseraya1997
 
PPTX
The Gift of the Magi by O Henry-A Story of True Love, Sacrifice, and Selfless...
Beena E S
 
PPTX
How to Configure Refusal of Applicants in Odoo 18 Recruitment
Celine George
 
PPTX
Natural Language processing using nltk.pptx
Ramakrishna Reddy Bijjam
 
PDF
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
PDF
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
PPTX
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
PPTX
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
PDF
Supply Chain Security A Comprehensive Approach 1st Edition Arthur G. Arway
rxgnika452
 
PPTX
Matatag Curriculum English 8-Week 1 Day 1-5.pptx
KirbieJaneGasta1
 
PPTX
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
PPTX
PLANNING A HOSPITAL AND NURSING UNIT.pptx
PRADEEP ABOTHU
 
PDF
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
PDF
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
PPTX
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
PPTX
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
PDF
Wikinomics How Mass Collaboration Changes Everything Don Tapscott
wcsqyzf5909
 
PDF
COM and NET Component Services 1st Edition Juval Löwy
kboqcyuw976
 
Rapid Mathematics Assessment Score sheet for all Grade levels
DessaCletSantos
 
Ward Management: Patient Care, Personnel, Equipment, and Environment.pptx
PRADEEP ABOTHU
 
TLE 8 QUARTER 1 MODULE WEEK 1 MATATAG CURRICULUM
denniseraya1997
 
The Gift of the Magi by O Henry-A Story of True Love, Sacrifice, and Selfless...
Beena E S
 
How to Configure Refusal of Applicants in Odoo 18 Recruitment
Celine George
 
Natural Language processing using nltk.pptx
Ramakrishna Reddy Bijjam
 
Public Health For The 21st Century 1st Edition Judy Orme Jane Powell
trjnesjnqg7801
 
Lesson 1 : Science and the Art of Geography Ecosystem
marvinnbustamante1
 
PLANNING FOR EMERGENCY AND DISASTER MANAGEMENT ppt.pptx
PRADEEP ABOTHU
 
How to Setup Automatic Reordering Rule in Odoo 18 Inventory
Celine George
 
Supply Chain Security A Comprehensive Approach 1st Edition Arthur G. Arway
rxgnika452
 
Matatag Curriculum English 8-Week 1 Day 1-5.pptx
KirbieJaneGasta1
 
How to Manage Wins & Losses in Odoo 18 CRM
Celine George
 
PLANNING A HOSPITAL AND NURSING UNIT.pptx
PRADEEP ABOTHU
 
Nanotechnology and Functional Foods Effective Delivery of Bioactive Ingredien...
rmswlwcxai8321
 
TechSoup Microsoft Copilot Nonprofit Use Cases and Live Demo - 2025.06.25.pdf
TechSoup
 
Lesson 1 Cell (Structures, Functions, and Theory).pptx
marvinnbustamante1
 
Aerobic and Anaerobic respiration and CPR.pptx
Olivier Rochester
 
Wikinomics How Mass Collaboration Changes Everything Don Tapscott
wcsqyzf5909
 
COM and NET Component Services 1st Edition Juval Löwy
kboqcyuw976
 

Programming preparation_stepping Algorithm

  • 1. FUNDAMENTALS OF PROGRAMMING PROGRAMMING PREPARATION
  • 2. COMPUTER WORKS? Machine Cycle Programming- process of giving instruction Program – instructions provided
  • 3. STEPS IN SOLVING COMPUTER BASED- PROGRAM 1. ANALYSE THE PROBLEM 2. DESIGN A SOLUTION / PROGRAM 3. CODE/ENTER THE PROGRAM 4. TEST THE PROGRAM
  • 4. STEPS IN SOLVING COMPUTER BASED-PROGRAM DESIGN A SOLUTION/PROGRAM 1. ALGORITHM 2. PSEUDOCODE
  • 5. PROBLEM: To change the temperature in Fahrenheit to Centigrade. ALGORITHM: PSEUDOCODE: 1. subtract 32 1. Subtract the Value of F 2. multiply the result in to 32. (1) by 5 2. Then Multiply the answer by 5 3. divide the result in (2) 3. Next is divide the by 9 result by 9 to get the 4. write down the value of Centigrade answer.
  • 6. STEPS IN SOLVING COMPUTER BASED-PROGRAM DESIGN A SOLUTION/PROGRAM Algorithm  A step-by-step set of instructions for solving a problem in a limited number of steps. The instructions for each step are exact and precise and can be carried out by a computer.  A logical procedure or set of steps to be followed to arrive at a solution to a problem. gives a solution to a particular problem
  • 7. EXAMPLE OF ALGORITHM PROBLEM: Find the sum of two numbers ALGORITHM: 1. Add the two numbers together 2. Write down the answer.
  • 8. EXAMPLE OF ALGORITHM PROBLEM: To change the temperature in Fahrenheit to Centigrade. ALGORITHM: C = (F - 32) * 5/9 1. subtract 32 2. multiply the result in (1) by 5 3. divide the result in (2) by 9 4. write down the answer.
  • 9. STEPS IN SOLVING COMPUTER BASED-PROGRAM Pseudocode  an algorithm in English statements in an outline form.  is one of the methods that could be used to represent an algorithm
  • 10. THREE METHODS USED IN CREATING AN ALGORITHM STEPPING, LOOPING & CHOOSING STEPPING  This is where all the instructions needed to solve our problem are set out one after the other.
  • 11. EXAMPLE OF ALGORITHM PROBLEM: Find the average of four numbers ALGORITHM: 1. Add the four numbers 2. Divide the result by 4 to get the average. 3. Write down the answer