Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

Malaysian Institute of Aviation Technology

COMPUTER PROGRAMMING
AAB21002

Dr. Nor Fazlina Iryani Abdul Hamid


norfazlinairyani@gmail.com
0133975266 (WA only)
Malaysian Institute of Aviation Technology

SYLLABUS
1. Introduction to flowchart components
2. Introduction to C Programming
3. Representation of situation and problems using flowcharts
4. Lexical Elements
5. Usage Program of Functions
6. Selection and Repetition
7. Array
8. Pointer
9. String
10. Function
11. Programming - Representation of situation
Malaysian Institute of Aviation Technology

SEMESTER STRUCTURE
• 28th January – 28th June
• Lecture - 18 weeks
• Mid Term Break – 1 week
• Revision week – 1 week
• Final Exam – 2 weeks ( 13th June – 26th June)
Malaysian Institute of Aviation Technology

COURSE STRUCTURE
Item Quantity %

Assignments 1 - Individual 25%


1 - Group of 3

Quiz 2 20%

Midterm Exam 1 15%

Final Exam 1 40%


Malaysian Institute of Aviation Technology

REFFERENCE
• Learn C Programming Language in 24 Hours.
• Software Engineering for Students: A
Programming Approach. 4th Edition. Addison
Wesley.
• Practical C Programming, 3rt Edition,
O’Reilly.
• C++ A Beginner’s Guide, 2nd Edition, Herbert
Schildt
• C Programming for Scientists & Engineers,
Robert L. Wood, Penton Press.
Malaysian Institute of Aviation Technology

INTRODUCTION
TO
FLOWCHART
COMPONENTS
Malaysian Institute of Aviation Technology

• Introduction to Flowcharts
andComponents.
• Types of Flowcharts and Components
• Example of usage.
Malaysian Institute of Aviation Technology

WHAT IS FLOWCHART?
• Diagrammatic representation of a computer program in
relation to its sequence of functions.
• Depicts the flow of operation through a program or
process by dividing the system or process into
events/activities and presenting the logical relationship
between them.
• Each step in the process is represented by a different
symbol and contains a short description of the process
step. The flow chart symbols are linked together with
arrows showing the process flow direction.
Malaysian Institute of Aviation Technology

WHY FLOWCHART?
• The purpose of flowchart is to communicate how a
process works or should work without any confusing.
• Useful for displaying how a process currently functions
or could ideally function.
• May help to see whether the steps of a process are
logical, uncover problems or miscommunications, define
the boundaries of a process, and develop a common
base of knowledge about a process.
Malaysian Institute of Aviation Technology

FLOWCHART SHAPES
Malaysian Institute of Aviation Technology

COMMON SHAPES
Malaysian Institute of Aviation Technology

FLOWCHART
• Sequence flow
Malaysian Institute of Aviation Technology

FLOWCHART
• Looping flow
Malaysian Institute of Aviation Technology

FLOWCHART
• Combination
flow
Malaysian Institute of Aviation Technology

EXAMPLE 1:
Draw a flowchart to solve below problem:
❖Read 10 integer numbers, entered by a user
through a keyboard.Search a highest and
lowest number.Display the output which are
the highest and lowest number.
Malaysian Institute of Aviation Technology

ANSWER 1: start

Read input number

Keep into low variables


Highest?
no
yes
Keep into high variables

10 input integers?
no

yes
Display the highest and lowest integer

End
Malaysian Institute of Aviation Technology

EXAMPLE 2:
Draw a flowchart to solve below problem:
❖Draw a flowchart to find first 50 Prime
Numbers.
Malaysian Institute of Aviation Technology

ANSWER 2:

You might also like