Computer Programming. Objectives Program and Programming Program and Programming Algorithms & Programs Algorithms & Programs Software Life Cycle Software.

Slides:



Advertisements
Similar presentations
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 15 Programming and Languages: Telling the Computer What to Do.
Advertisements

CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Computers Are Your Future
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Welcome to CMPE003 Personal Computer Concepts: Hardware and Software Winter 2003 UC Santa Cruz Instructor: Guy Cox.
2 We need programming languages to communicate with a computer. The two broad classifications of programming languages are: Low-level and High- level.
Module 10 Programming ___tell computers what to do
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Computers: Tools for an Information Age
Program Flow Charting How to tackle the beginning stage a program design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Tuesday, January 25, Management of Information Systems: Mini-3 Spring 2000.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 1: Getting Started by George Lamperti & BU Faculty.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Programming. Software is made by programmers Computers need all kinds of software, from operating systems to applications People learn how to tell the.
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Programming Languages: Telling the Computers What to Do Chapter 16.
Programming Languages CPS120: Introduction to Computer Science Lecture 5.
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Computers Are Your Future Eleventh Edition
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
High level & Low level language High level programming languages are more structured, are closer to spoken language and are more intuitive than low level.
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
Evolution of Programming Languages Generations of PLs.
UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
Programming Lifecycle
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Evolution and History of Programming Languages. Machine languages Assembly languages Higher-level languages To build programs, people use languages that.
Evolution and History of Programming Languages. Software Programming Language.
Software Life Cycle What Requirements Gathering, Problem definition
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Copyright © Prentice Hall Programming and Languages Chapter 14 Telling the Computer What to Do.
What is Programming? A program is a list of instructions that is executed by a computer to accomplish a particular task. Creating those instructions is.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Programming and Languages Dept. of Computer and Information Science IUPUI.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Programming Languages and the Programming Process lesson 28.
Chapter 1 An Overview of Computers and Programming Languages.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Software Engineering Algorithms, Compilers, & Lifecycle.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
CHAPTER 2 GC101 Program’s algorithm 1. COMMUNICATING WITH A COMPUTER  Programming languages bridge the gap between human thought processes and computer.
Introduction to Computers and C++ Programming
Programming Languages
CSCI-235 Micro-Computer Applications
Computer Programming.
CS105 Introduction to Computer Concepts Intro to programming
Computer Programming.
CS105 Introduction to Computer Concepts Intro to programming
Presentation transcript:

Computer Programming

Objectives Program and Programming Program and Programming Algorithms & Programs Algorithms & Programs Software Life Cycle Software Life Cycle Computer Language Generations Computer Language Generations Flowchart Flowchart

Program and Programming

Program and Programming Program: مجموعة من الأوامر المكتوبة بلغة برمجة يقوم الحاسب بتنفيذها A set of instruction written in a programming language that a computer can execute so that the machine acts in a predetermined way. Program solves a problem البرنامج يحل مشكلة معينة Before writing a program: –Have a thorough understanding of the problem –Carefully plan an approach for solving it. Programming:البرمجة هي عملية كتابة أوامر للحاسب تخبر المعالج بما يجب أن يقوم به The Process of providing instructions to the computer that tells the processor what to do. 4

AlgorithmsandPrograms

Algorithms and Programs الخوارزمي يقدم حلا لمشكلة دون الاعتماد على أي لغة للبرمجة بينما البرنامج عبارة عن خوارزمي مكتوب بلغة معينة An Algorithm is a solution to a problem that is independent of any programming language. While A program is an algorithm expressed using a specific set of instructions from any programming language. 6

Algorithm Example Maximum of two numbers Steps: 1.Read/input two numbers 2.Compare two numbers 3.Print the Greater number Average of three numbers Steps: 1.Read/input three numbers 2.Add three numbers 3. divide the sum by 3. 4.Print the result of divison 7

Software Life Cycle

Use Requirements Gathering, Problem definition Analysis and Design (Programming techniques) Coding Testing Implementation and Maintenance What How Do it Test 9

Computer Language Generations

11 Computer Language generations Machine languageMachine language لغة الآلة Machine language Assembly languagesAssembly languages لغة التجميع Assembly languages High-level languagesHigh-level languages لغة المستوى العالي High-level languages Very high-level languagesVery high-level languages لغة المستوى العالي جدا Very high-level languages Natural languagesNatural languages اللغات الطبيعية Natural languages

12 Machine Language Programs and memory locations are written in strings of 0s and 1sأصفار وآحاد Problems with machine languages Programs are difficult to write and debug Programs are difficult to write and debug Each computer has its own machine language Each computer has its own machine language Only option available to early programmersكانت تستخدم في برمجة حاسبات الجيل الأول

13 Assembly Languages تستخدم حروف بدلا من الصفر والواحد مثل: For example, A for add, C for compare, etc. For example, A for add, C for compare, etc. Use names rather than binary addresses for memory locations Use names rather than binary addresses for memory locations Require an assembler to translate the program into machine language تحتاج لبرنامج يسمي المجمع للترجمة Still used for programming chips and writing utility programs مازالت تستخدم لبرمجة الشرائح

14 High-Level Languages Transformed programming Programmers could focus on solving problems rather than manipulating hardware Programmers could focus on solving problems rather than manipulating hardware Programs could be written and debugged much more quickly Programs could be written and debugged much more quickly Requires a compiler to convert the statements into machine language Each computer has its own version of a compiler for each language. Each computer has its own version of a compiler for each language.

15 Very High-Level Languages Also called fourth-generation languages (4GLs) Considered nonprocedural languages The programmer specifies the desired results, and the language develops the solution The programmer specifies the desired results, and the language develops the solution Programmers can be about 10 times more productive using a fourth-generation language than a third-generation language Programmers can be about 10 times more productive using a fourth-generation language than a third-generation language

16 Natural Languages Resemble written or spoken English Programs can be written in a natural syntax, rather than in the syntax rules of a programming language Programs can be written in a natural syntax, rather than in the syntax rules of a programming language The language translates the instructions into code the computer can execute

17 Major Programming Languages FORTRAN COBOL BASIC RPG Visual Basic Visual Basic C Java

18 Object-Oriented Languages C++ Java C# Visual Basic Visual Basic