Chapter 16 Programming and Languages: Telling the Computer What to Do.

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 1: An Overview of Computers and Programming Languages
Computers Are Your Future
Welcome to CMPE003 Personal Computer Concepts: Hardware and Software Winter 2003 UC Santa Cruz Instructor: Guy Cox.
PROGRAMMING Introduction To Programming Definition Types Of Programming Languages Programming Language Paradigm Translator
Programming Creating programs that run on your PC
This set of slides is provided by the author of the textbook1 Introductory Topics l Computer Programming l Programming Life-Cycle Phases l Creating an.
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.
Lecture Notes 1/21/04 Program Design & Intro to Algorithms.
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
ALGORITHMS AND PROGRAMMING LANGUAGES Lecture 5: Algorithms and programming languages Networks and Communication Department 1.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages Updated by: Dr\Ali-Alnajjar.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
6 Steps of the Programming Process
Programming Languages: Telling the Computers What to Do Chapter 16.
TECNICAL ENGLISH SANTIAGO ORTIZ MARCO PROAÑO NELSON REYES SEVENTH - LEVEL.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Basics Programming Concepts. Basics A computer program is a set of instructions to tell a computer what to do Machine language = circuit level language.
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.
CHAPTER 1 Overview of Programming and Problem Solving.
Chapter 10: Compilers and Language Translation Invitation to Computer Science, Java Version, Third Edition.
CSC-115 Introduction to Computer Programming
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
CSC425 - Introduction To Computer Programming 1. 2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over.
IXA 1234 : C++ PROGRAMMING CHAPTER 1. PROGRAMMING LANGUAGE Programming language is a computer program that can solve certain problem / task Keyword: Computer.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
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.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Lecture 11: 10/1/2002CS149D Fall CS149D Elements of Computer Science Ayman Abdel-Hamid Department of Computer Science Old Dominion University Lecture.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
Chapter 7 Low-Level Programming Languages. 2 Chapter Goals List the operations that a computer can perform Discuss the relationship between levels of.
Chapter 7 Low-Level Programming Languages. 2 Chapter Goals List the operations that a computer can perform Discuss the relationship between levels of.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
 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.
Lecture (8) Programming Design Dr. Emad Elsharkawy Eng- Omar Salah Dr:Emad Elsharkawy 1 Saturday, 13 February 2016.
ICT PROGRAMMING INTRODUCTION. WHAT & WHY PROGRAMMING Programming is a process of developing computer programs Computer program is a set of instructions.
Chapter 1 An Overview of Computers and Programming Languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
How Computers Solve Problems Computers also use Algorithms to solve problems, and change data into information Computers can only perform one simple step.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction to Computer Programming By: Mr. Baha Hanene Chapter 1.
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 Language Basics. What is a Programming Language? “A computer, human-created language used to write instructions for a computer.” “An artificial.
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: An Overview of Computers and Programming Languages
Programming Languages
Introduction to programming
CSCI-235 Micro-Computer Applications
Computer Programming.
Chapter 1: An Overview of Computers and Programming Languages
Programming Languages and Translators
High Level Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
Computer Programming.
Chapter 1: An Overview of Computers and Programming Languages
Programming Language Basics
Presentation transcript:

Chapter 16 Programming and Languages: Telling the Computer What to Do

Programming n program (software) - a set of instructions written in a programming language that is designed to solve a problem n programming language - set of rules and symbols that provide a way of telling the computer what operations to perform –syntax - grammar rules –semantics - rules that define the meaning of an instruction

There are many programming languages because... n as computer science advances new ideas and techniques have been used to design new languages and improve old ones n different types of problems call for languages with different strengths

Programming process n define the problem n develop an algorithm (plan) –step-by-step procedure for solving the problem in a finite amount of time n code the program –convert the algorithm into programming instructions

Programming process n test and debug –compile (translate) the program into an executable form –run it with sample data –if errors (bugs) detected, adjust program and retest n documentation –developed throughout the process –includes problem definition, algorithm, comments in program, testing procedures

Levels of Programming Languages n machine language –only language computer can directly understand and execute –instructions are sequences of 0’s and 1’s –all programs must be translated into machine language to be executed –considered machine dependent because each processor has its own machine language (very low level)

Levels of Programming Languages n assembly language –low level language –machine dependent –replaces 0’s and 1’s with mnemonic names (abbreviations that are easy to remember) –requires an assembler to translate program into machine language –very tedious to use

Levels of Programming Languages n high-level languages –make use of familiar words and symbols to construct instructions –allow programmers to focus on problem- solving rather than hardware –machine independent –requires a translator program (usually a compiler) –examples: FORTRAN, COBOL, BASIC, C, C++, Java

Levels of Programming Languages n very high-level languages –aka fourth-generation languages –nonprocedural language - specify results and language develops solution –tend to be specialized applications n natural languages –closely resemble spoken or written English –system may require clarification –limited applicability