Introduction To Programming
Introduction To Programming
Programming
Information System in
business
Information System is a
combination of technology and
people to:
Collect data
Store data
Transform data into information
Input
Data
System / IS
Processing
Output
Information
Software
Software
Program
Programming
Software Development
Planning
Analysis
Design
Implementation
Input Data
Store Data
Perform Arithmetic Operation
Make decisions
Repeat Operations
Output data
Computer Operation
Data
Memory
Processor/Processing
3
4 Chip
5
Perform
Make
Repeat
Arithmetic Decisions Operation/s
Information
Programs and
Programming
Control Structures
Programming Language
Programming Language
Binary format
Assembler
Programming Language
Graphical Representation
Total = 0
A=1
B=2
Total = A + B
Translation
Program
0110101011
0100101
01011010
01010010
Interpreted
Compiled
Programming Language
C
Basic
Visual Basic
Properties
Methods
Events
OOED Programming
Process
Define problem
Create Interface
Develop Logic Actions for objects
Write and test code for action objects
Test overall project
Document project in writing
OOED Programming
Process
OOED Programming
Process
Price
Taxes
Amount due
Calculate
Action
Objects
Output
Log-out
OOED Programming
Process
Textboxes
Buttons
Labels
OOED Programming
Process
OOED Programming
Process
Video Price
Processing
Taxes = 0.70 x Price
Amount Due = Price
+ Taxes
Outpu
t
Taxes
Amount Due
Using Pseudocode
1.
2.
3.
4.
Using Pseudocode
Input Video Price
Taxes = 0.70 x Video Price
Amount Due = Video Price +
Taxes
Output Taxes and Amount Due
OOED Programming
Process
OOED Programming
Process
OOED Programming
Process
End of the
Presentation
Part 1
Introducing Computer
Science:
The Study of Algorithms
Goals
By the end of this lecture you should
What is Computer
Science?
What is Computer
Science?
What is an Algorithm?
A sequence of unambiguous
instructions for solving a problem,
i.e., for obtaining a required output
for any legitimate input in a finite
amount of time.
Algorithms are used for
calculation, data processing
list of well-defined instructions for
completing a task
What is an Algorithm?
An algorithm is a well-developed,
organized approach to solving a
complex problem.
Computer Scientists ask
themselves four critical
questions when they evaluate
algorithms
Algorithm Questions
Developing an Algorithm
1.
2.
3.
4.
5.
5. Identify Relevant
Modules
Importance of Algorithm
Importance of Algorithm
Importance of Algorithm
Properties of Algorithm
1) Finiteness: - an algorithm terminates
after a finite numbers of steps.
2) Definiteness: - each step in algorithm is
unambiguous. This means that the
action specified by the step cannot be
interpreted (explain the meaning of) in
multiple ways & can be performed
without any confusion.
3) Input:- an algorithm accepts zero or
more inputs
Properties of Algorithm