INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.

Slides:



Advertisements
Similar presentations
SYSTEM PROGRAMMING & SYSTEM ADMINISTRATION
Advertisements

Systems Software.
PROGRAMMING Introduction To Programming Definition Types Of Programming Languages Programming Language Paradigm Translator
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
Course: Introduction to Computers
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
1 Chapter-01 Introduction to Computers and C++ Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction to Computer Programming itc-314
Course Introduction C++ An Introduction to Computing.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
Slide 1 System Software Software The term that we use for all the programs and data that we use with a computer system. Two types of software: Program.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Course Overview. What are Computers? From Outside –CPU box, Monitor, Keyboard, mouse and Printers From inside –ICs, Chipsets, Hard Disks, PCB cards, Drives,
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
A language which is acceptable to a computer system is called a computer language or programming language and the process of writing instructions in such.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Introduction to Computer Application (IC) MH Room 517 Time : 7:00-9:30pm.
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
1 Software. 2 What is software ► Software is the term that we use for all the programs and data on a computer system. ► Two types of software ► Program.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Introduction to Computer Programming itc-314 Lecture 04.
Lecture-8 Introduction to computer languages.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction  Program: Set of sequence instruction that tell the computer what to do.  Software: A collection of programs, data, and information. 
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
Programming Languages
Recap – Our First Computer WR System Bus 8 ALU Carry output A B S C OUT F 8 8 To registers’ read/write and clock inputs Sequence of control signal combinations.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Evolution and History of Programming Languages
Chapter 1 Introduction 2nd Semester H
Software Development Environment
Topic 2: Hardware and Software
Programming Languages
Introduction to programming
Operating System Interface between a user and the computer hardware
Programming Language Hierarchy, Phases of a Java Program
CSCI-235 Micro-Computer Applications
Lecture 1: Introduction to JAVA
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Introduction to Computers and Java
A451 Theory – 7 Programming 7A, B - Algorithms.
Course: Introduction to Computers
C++ Programming: From Problem Analysis to Program Design
TRANSLATORS AND IDEs Key Revision Points.
Assembler, Compiler, Interpreter
Chapter 6 System and Application Software
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Assembler, Compiler, Interpreter
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Introduction to Computer Programming
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
Chapter 6 System and Application Software
1.3.7 High- and low-level languages and their translators
Function of Operating Systems
Presentation transcript:

INTRODUCTION TO COMPUTER PROGRAMMING ITC-314

Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer to do something. OR Computer programming (often shortened to programming or coding) is the process of writing, testing, debugging/troubleshooting, and maintaining the source code of computer programs.

Program, Programmer, & Programming  The set of instructions given to the computer is called a program.  The person who writes a computer program is called programmer.  The job or process of writing a program is called Programming.

The Need of Programming  Computer is provided with a set of instructions and some relevant data. These instructions are stored in the memory of computer. Computer picks instructions from the set one by one and performs operations on the given data accordingly. Taking an example of addition of two numbers the following set of instructions will given to the computer.  Input or Read first number and call it A  Input or Read second number and call it B  Add A and B and put result in C  Display the value of C to the user. This set of instructions is to be stored in the computer main memory. This phase is called loading. Once loaded, the computer will start action on these instructions one by one. This phase is called execution.

 In the pervious example the computer will ask and take the value of first number from the user through an input device like keyboard. The computer will put this value in memory. The process of taking values from input device is called reading.  In the second instruction the computer will read the value of B. in the next instruction the computer will perform the arithmetic operation of addition on the values A & B and remember the result by the name C. in the last instruction the computer will display the value of C on an output device like monitor.  Unfortunately, programming a computer is not that simple as given in above example. It is mainly because of two reasons. Firstly, writing a problem in steps is not always so simple and secondly, computer cannot understand English language. Therefore we must learn a programming language to create programs for instructing the computer.

Programming Language  The language in which a computer programs are written is called programming Language. OR  A Programming Language is a vocabulary and set of grammatical rules for instructing a computer to perform specific tasks.

Programming Language Cont….  A programming language or computer language is a means of communication between the user and computer. As we use a natural language, such as English to communicate our ideas and emotions to others. Similarly, a computer language is used by programmer to instruct a computer what he/she wants it to do.  All natural languages (English, French, Urdu etc) use a standard set of words and symbols for the purpose of communication. These set of words and symbols in a language is called Vocabulary of the language. In a similar manner, all computer languages have a vocabulary of their own.  The main difference b/w a natural language and a computer language is that the natural languages have a large vocabulary, but the most computer languages use a very limited or restricted vocabulary.

Categories of Programming Language  As we say that every programming language has its own set of rules which are used for different operations.  Following are the different categories of programming languages.  Machine Language  Low Level Language (LLL)  High Level Language (HLL)

Machine Language  The easily understandable language for computer is known as Machine language.  Because Computer can understand and perform operations only on binary numbers. A machine language consists of strings of binary numbers and is the only language that the computer understands directly without any translations. It is a combination of Os and Is. Machine language is easy for computers and is difficult for programmers.

Low-Level Languages  A Language which is one step higher than the machine language in human readability is called assembly language or a low-level language.  A machine language consists totally of numbers and is almost impossible for humans to read.  In assembly language some of these numbers are replaced by human readable symbols called mnemonics.  An assembly language is a combination of mnemonics operation codes and symbolic codes for addresses. Each computer uses and has a mnemonic code for each instruction 

Command NameMnemonic AddA SubtractS StoreST Examples of Mnemonic

Assembler  A program written in an assembly language is translated into a machine language before can computer can understand and execute it. A computer program which translates an assembly language program into its equivalent machine language is known as an assembler.

High-Level Languages  A Language one step higher than low-level languages is called High-Level language.  High- level languages are developed to enable the users to program computers easily. These languages are easy to understand.  They are also called as English oriented languages in which instructions are given using words, such as add, subtract, input, print, etc.  High level languages are easy for human to understand but it is difficult for computers, so compiler program is used to translate HLL program into Machine language

Basic  Beginners All-Purposes Symbolic Instructions code, abbreviated as BASIC, was developed at the Dartmouth College, USA, by John Kemeny and Professor Kurtz.  BASIC languages were initially developed to make it convenient for the people to communicate with computers.  BASIC has improved over the years, but unfortunately it is not a portable language i.e., a program developed in basic on one computer may not run on another without necessary modifications. This is because different versions of BASIC do not conform to the same standards.