Introduction to programming (week 1)

531 views

Published on

1 Comment
0 Likes
Statistics
Notes
  • Be the first to like this

No Downloads
Views
Total views
531
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
29
Comments
1
Likes
0
Embeds 0
No embeds

No notes for slide

Introduction to programming (week 1)

  1. 1.  The process of developing and implementing various sets of instructions to enable a computer to do a certain task. These instructions are considered computer programs and help the computer to operate smoothly.
  2. 2.  It is also the process of writing, testing and maintaining the source code of computer programs
  3. 3.  Knowledge and mastery of the programming language. Logic formulation
  4. 4.  Is an artificial language that can be used to control the behavior of a machine, particularly a computer.
  5. 5.  Problem definition Problem Analysis Algorithm design Coding Testing and debugging
  6. 6.  Use of symbols and phrases to designate the logic of how a problem is solved. A combination representing the logical sequence in which a combination of steps or operations to be performed. It is a blueprint of the program.
  7. 7. Terminal (Start/Begin)Used to signify the beginning and end of flowchart
  8. 8. Preparation or Initialization (Sum=0, A=1)Used to select initial conditions
  9. 9. Input / Output (Read A or Print A)Shows input and output
  10. 10. Processing (Sum=A+B)Performs any calculations that are to be done
  11. 11. Decision (If A>B)Signifies any decisions that are to be done.
  12. 12. Flowlines – signifies the process that is to beaexecuted next.
  13. 13.  Is a finite set of instructions that specify a sequence of operations to be carried out in order to solve a specific problem.
  14. 14. Draw a flowchart that will compute and displaythe sum and product of two numbers. Write itsequivalent algorithm.
  15. 15. Draw a flowchart that will compute and displaythe area of a rectangle using the formula:Area =Length X width Start L=0 W=0 Area=0 Area=L *W Display Area End Read L, W
  16. 16. Draw a flowchart that will compute and displaythe area of a rectangle using the formula:Area =Length X width, if the Area is greaterthan 5, display the word Hello and if not displayHi Start L=0 W=0 Area=0 Area >5 Display Area End Read L, W Area=L *W Display Area

×