İşkur Bulut Teknolojileri Programlama Temelleri: Ankara Yildirim Beyazit University
İşkur Bulut Teknolojileri Programlama Temelleri: Ankara Yildirim Beyazit University
Bulut Teknolojileri
Programlama Temelleri
Ankara Yildirim Beyazit University
Computer Engineering
• Computer
– a machine that manipulates information in the form
of numbers and characters
• Data
– particular characters that are used to represent
information in a form suitable for storage,
processing, and communication
• Computer Program
– a set of instructions that tells the computer what to do
• Programming
– the act of giving instructions to the computer
• Computer Programmer
– a person who prepares those instructions
Software Development Method
• Problem Inputs
– distance (in meters)
– speed (in mph)
• Problem Output
– time (in minutes)
• Formulas
distance in miles = distance in meters / 1609.344
time in hours = distance in miles / speed in mph
time in minutes = time in hours x 60
• Algorithm
– a finite sequence of clear, unambigious instructions that,
when followed, will produce the answer to a given
problem
• Programming Language
– set of rules, symbols and special words used to construct a
program
• Problem
– Display Unsuccessful if the average of two grades is less than
50, Successful otherwise.
• Problem Inputs
– two grades
• Problem Output
– the message Unsuccessful or Successful
• Formula
average = sum of the grades / 2
Flowchart Example
Start
grade1
grade2
T F
average < 50
Unsuccessful Successful
End
• Pseudocode
– stylized, half natural language, half code method
– written in a natural language, but the sentence structure and indentation look like
a programming language.
– do not have not a standard syntax or style. Everyone can select his/her own syntax
and style. The important thing is, he/she should be consistent, thus use the same
words and symbols for similar operations, and the algorithm should be clear and
easy to be understood by everybody.
• Example:
• Machine language
computer only understands (consists of 0’s and 1’s)
• Assembly language
assembler translates the assembly language program into a machine language programso that
the computer can execute it
• Interpreter
– translates a single source code statement into
its object code equivalent, executes the object
code, and then goes on to the next source code
statement, translates and runs it, and so on.
• Compiler
– translates the entire source code program,
producing an object code file which can then
be executed.