COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.

Slides:



Advertisements
Similar presentations
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Advertisements

Senem Kumova Metin Introduction to Programming CS 115 Introduction to Computing PART I : Computer Basics PART II: Introduction to Computing/Programming.
Introduction Kingdom of Saudi Arabia Shaqra University
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Three types of computer languages
Introduction to Computer Systems
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Introduction to Computers and Programming. Some definitions Algorithm: –A procedure for solving a problem –A sequence of discrete steps that defines such.
Java Environment (CSS444)
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.
 2003 Prentice Hall, Inc. All rights reserved. 1 Machine Languages, Assembly Languages, and High-level Languages Three types of computer languages 1.Machine.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Systems Software Operating Systems.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
Computers & Logic An Overview. Hardware Hardware is the equipment, or the devices, associated with a computer. For a computer to be useful, however, it.
Introduction to computers and programming RIZWAN REHMAN Assistant Professor Centre For Computer Studies.
CS102 Introduction to Computer Programming
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
COMPUTER SCIENCE I C++ INTRODUCTION
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What Is a Computer? 1.3Computer Organization 1.4Evolution.
Lecture 1: Introduction to Computers. OBJECTIVES In this lecture you will learn:  Basic computer concepts.  The different types of programming languages.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
Computer programming.
CISC105 General Computer Science Class 1 – 6/5/2006.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Computer Programming I. Today’s Lecture  Components of a computer  Program  Programming language  Binary representation.
UniMAP Sem1-08/09EKT120: Computer Programming1 Week 1 – Lecture 1.
Intro to Computers Computer Apps 1.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
INTRODUCTION Kingdom of Saudi Arabia Princess Nora bint Abdul Rahman University College of Computer Since and Information System CS240.
What is a computer? Computer is a device for processing information.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
1 Programming Fundamentals How to Program in C++ How to Program in C++
 2000 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers, the Internet, and the World Wide Web Outline 1.1Introduction 1.2What.
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 1 st semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
Spring 09- ICE0124 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 1.
1 Text Reference: Warford. 2 Computer Architecture: The design of those aspects of a computer which are visible to the programmer. Architecture Organization.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
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.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
CS2301:Computer Programming 2
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Introduction to C – Part 1.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming Dr. Halla Abdel Hameed.
Introduction to Computer Programming using Fortran 77.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
Computer Software vs. Hardware. Topic: Java in the Computer World.
Chapter 1 Introduction 2nd Semester H
Software Development Environment
 2001 Prentice Hall, Inc. All rights reserved.
Chapter 1: Introduction to computers and C++ Programming
Outline Introduction What Is a Computer? Computer Organization
Week 1 – Session 1 Pn. Yasmin Yacob 04 – KUKUM Sem2-06/07
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Introduction to Programming
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
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
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Presentation transcript:

COMPUTER PROGRAMMING

Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high level language.

Introduction What is a computer? a computer is a device that accepts information (in the form of digitalized data) and manipulates it for some result based on a program or sequence of instructions on how the data is to be processed. What is a computer program? Sets of instructions that control computer’s processing of data, which are carried out to perform an intended task.

what are computers used for? Data processing: for commercial and financial purposes ( such as billing, shipping and receiving) Scientific processing: to support science ( raw data analysis, modelling natural phenomenon) Multimedia: (composing music, performing music, recording music, editing film and video, special effects, animation, illustration, laying out print materials, etc.)

Parts of a computer Computers’ parts can be divided into five elements: Arithmetic and logic unit(ALU). Central processing unit(CPU). Main storage. Input unit. Output unit.

Arithmetic and logic unit(ALU). performs integer arithmetic and logic operations. other specialized operations. Central processing unit(CPU). “Administrative” section Supervises and coordinates other sections of computer. contains an arithmetic/logic unit (ALU), control unit and internal buses. Main storage. called memory or internal memory. RAM (Random Access Memory)( static or dynamic) ROM (Read Only Memory) also is random.

Input unit. “Receiving” section Obtains information from input devices such as Keyboard, mouse, microphone, scanner, networks. Output Unit Shipping” section Takes information processed by computer Places information on output devices Screen, printer, networks, …

Software What is the software? Programs that run on computer.

Classification of the software operating system  control the flow of data through all the computers’ units.  Mange all the computer units  Monitoring the executions of the programs  Controlling storing data on the storage units  ……….

Classification of the software Utility programs  serve the final users  Word, excel ……

Classification of the software Programming languages  Have been used to create computer programs  Example: Java, C#, C and C++.

Types of programming languages  Machine language Only language computer directly understands “Natural language” of computer Defined by hardware design –Machine-dependent Generally consist of strings of numbers –Ultimately 0s and 1s Instruct computers to perform elementary operations –One at a time Hard to understand for humans Example: –

Types of programming languages  Assembly language English-like abbreviations representing elementary computer operations Clearer to humans Incomprehensible to computers –Translator programs (assemblers) Convert to machine language Example: –LOADBASEPAY ADD OVERPAY STORE GROSSPAY

Types of programming languages  High-level languages Similar to everyday English, use common mathematical notations Single statements accomplish substantial tasks –Assembly language requires many instructions to accomplish simple tasks Translator programs (compilers) –Convert to machine language Interpreter programs –Directly execute high-level language programs Example: –grossPay = basePay + overTimePay

Examples following sentence is written using Pascal as a high level programming language “ if (x=y)and (z=w)then writeln(‘the answer is Yes’);” Notes: - Easy to understand for human. - Can not be understood by CPU. - Has to be translated to low level language.

Con. Examples following sentence belongs to assembly language as a low level programming language “ ADD XYZ” which can be translated to: add the number which is existing in the memory at the location x to the number at the location y then store the result at the location z.

Con. Example Notes: - Difficult to the programmer. - Still can not be understood by the CPU. - Needs to be translated to low level language.

Con. Example the above sentence needs to be translated to a sequence of zeros and ones (01) to be executed. if ADD is translated to 0110 x 1001 y 1010 z 1011 The sentence is going to be like and is ready to be executed.

What are Interpreters, compilers and assemblers? Interpreter: it converts each high level instruction into a series of machine instructions and then immediately run (or execute) those instructions. Compilers: convert a finished program (or section of a program) into object code. This is often done in steps. Assemblers: program which convert the symbolic instructions ( which is written in an assembly language) into object or machine code.