Upcoming SlideShare
×

# Programming preparation_stepping Algorithm

856 views
812 views

Published on

Published in: Education, Technology
1 Like
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
• Be the first to comment

Views
Total views
856
On SlideShare
0
From Embeds
0
Number of Embeds
11
Actions
Shares
0
32
0
Likes
1
Embeds 0
No embeds

No notes for slide

### Programming preparation_stepping Algorithm

1. 1. FUNDAMENTALS OF PROGRAMMINGPROGRAMMING PREPARATION
2. 2. COMPUTER WORKS? Machine CycleProgramming- process of givinginstructionProgram – instructions provided
3. 3. STEPS IN SOLVING COMPUTER BASED- PROGRAM1. ANALYSE THE PROBLEM2. DESIGN A SOLUTION / PROGRAM3. CODE/ENTER THE PROGRAM4. TEST THE PROGRAM
4. 4. STEPS IN SOLVING COMPUTER BASED-PROGRAMDESIGN A SOLUTION/PROGRAM 1. ALGORITHM 2. PSEUDOCODE
5. 5. PROBLEM: To change the temperature inFahrenheit to Centigrade.ALGORITHM: PSEUDOCODE:1. subtract 32 1. Subtract the Value of F2. multiply the result in to 32. (1) by 5 2. Then Multiply the answer by 53. divide the result in (2) 3. Next is divide the by 9 result by 9 to get the4. write down the value of Centigrade answer.
6. 6. STEPS IN SOLVING COMPUTER BASED-PROGRAMDESIGN A SOLUTION/PROGRAMAlgorithm  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. 7. EXAMPLE OF ALGORITHMPROBLEM: Find the sum of two numbersALGORITHM:1. Add the two numbers together2. Write down the answer.
8. 8. EXAMPLE OF ALGORITHMPROBLEM: To change the temperature in Fahrenheit to Centigrade.ALGORITHM: C = (F - 32) * 5/91. subtract 322. multiply the result in (1) by 53. divide the result in (2) by 94. write down the answer.
9. 9. STEPS IN SOLVING COMPUTER BASED-PROGRAMPseudocode an algorithm in English statements in an outline form. is one of the methods that could be used to represent an algorithm
10. 10. THREE METHODS USED IN CREATING AN ALGORITHMSTEPPING, LOOPING & CHOOSINGSTEPPING This is where all the instructions needed to solve our problem are set out one after the other.
11. 11. EXAMPLE OF ALGORITHMPROBLEM: Find the average of four numbersALGORITHM:1. Add the four numbers2. Divide the result by 4 to get the average.3. Write down the answer