Chapter 3
Chapter 3
• Start with the big picture: You first identify the main task
or problem.
• Break it down: Divide the task into smaller sub-tasks or
components.
• Develop details later: You focus on the higher-level
structure first and gradually fill in the details.
• Example: If you're building a website, you first think of the
overall structure (home page, about page, contact page),
then decide what each page should contain.
Bottom-Up Design:
Characteristics
•Accept Inputs: An algorithm should start by taking inputs or processing given data.
•Use Variables: Variables are used to store and manipulate data, similar to math.
•Precise Instructions: Each step must be clear and possible to carry out.
•Basic Steps: Instructions should be simple enough to be done by hand.
•Finite Time: The algorithm must complete in a reasonable amount of time.
•Produce Output: The algorithm should give the desired result at the end
Flowcharts
• Advantages of flowcharts
• Better communication
• Effective analysis
• Effective synthesis
• Efficient coding
Disadvantages
• time consuming and laborious to draw
• no standards
Exit Controlled Loop and Entry
Controlled Loop
Coding the program
• The program written in any HLL is known as source
code.