Computer Programming.

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.
Chapter 2- Visual Basic Schneider
CIS105 Chapter 1 Theory Review. Page 2 Hardware and Software are the two major components o any computer system Hardware is the set of physical devices.
Computers: Tools for an Information Age
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
PRE-PROGRAMMING PHASE
1 I.Introduction to Algorithm and Programming Algoritma dan Pemrograman – Teknik Informatika UK Petra 2009.
Introduction to Programming Prof. Rommel Anthony Palomino Department of Computer Science and Information Technology Spring 2011.
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.
Introduction to Programming Lecture Number:. What is Programming Programming is to instruct the computer on what it has to do in a language that the computer.
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
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
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Software Life Cycle What Requirements Gathering, Problem definition
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
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.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
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.
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.
CS2301:Computer Programming 2
Chapter 14 Programming and Languages McGraw-Hill/Irwin Copyright © 2008 by The McGraw-Hill Companies, Inc. All rights reserved.
LESSON 1 Introduction to Programming Language. Computer  Comprised of various devices that are referred to as HARDWARE.  The computer programs that.
ALGORITHMS AND FLOWCHARTS. Why Algorithm is needed? 2 Computer Program ? Set of instructions to perform some specific task Is Program itself a Software.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
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.
Computer Programming. Objectives Program and Programming Program and Programming Algorithms & Programs Algorithms & Programs Software Life Cycle Software.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
CIS 365: Visual Application Development Introduction to Computers and Programming.
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.
Chapter 1 Introduction 2nd Semester H
Introduction to Computers and C++ Programming
Introduction to Programming / chapter 3 / COM1022
Programming Languages
Operating System Interface between a user and the computer hardware
CSCI-235 Micro-Computer Applications
Chapter 2- Visual Basic Schneider
ALGORITHMS AND FLOWCHARTS
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Computer Programming Flowchart.
An Introduction to Visual Basic .NET and Program Design
Assembler, Compiler, Interpreter
Unit# 9: Computer Program Development
(Course Introduction)
Chapter 2- Visual Basic Schneider
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
CS105 Introduction to Computer Concepts Intro to programming
Computer Programming.
Chapter 2- Visual Basic Schneider
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.
PROGRAMMING FUNDAMENTALS Lecture # 03. Programming Language A Programming language used to write computer programs. Its mean of communication between.
Chapter 1 Introduction to Programming
CS105 Introduction to Computer Concepts Intro to programming
Programming Logic and Design Eighth Edition
Presentation transcript:

Computer Programming

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

Program and Programming

Program and Programming 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.

Algorithms and Programs

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.

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

Software Life Cycle

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

Computer Language Generations

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

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 Each computer has its own machine language Only option available to early programmersكانت تستخدم في برمجة حاسبات الجيل الأول

Assembly Languages تستخدم حروف بدلا من الصفر والواحد مثل: For example, A for add, C for compare, etc. 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 مازالت تستخدم لبرمجة الشرائح

High-Level Languages Transformed programming Programmers could focus on solving problems rather than manipulating hardware 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.

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 Programmers can be about 10 times more productive using a fourth-generation language than a third-generation language

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 The language translates the instructions into code the computer can execute

Major Programming Languages FORTRAN COBOL BASIC RPG Visual Basic C Java

Object-Oriented Languages Java C# Visual Basic

Flowchart

Flowchartخريطة سير العمليات Graphical representation of an algorithm Components: Arrows/lines: Flow of control Parallelogram: Indicates input and output operations Rectangle symbol (action symbol): Indicates any type of action/computational step Oval symbol: Indicates the start or the end of a program or a section of code Diamond: Decision.

Flowchart Notations Arrows Diamond Parallelogram Oval Rectangle

Example: Add two Numbers START READ A,B Sum = A+B PRINT Sum Stop