Course Introduction C++ An Introduction to Computing.

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

Laboratorio di Calcolo II Obbiettivo: insegnarvi a scrivere programmi in c++ 2 ore/settimana di lezione in aula 4 ore/settimana di esercitazioni personali.
Chapter 8 ICS 412. Code Generation Final phase of a compiler construction. It generates executable code for a target machine. A compiler may instead generate.
IT253: Computer Organization Lecture 6: Assembly Language and MIPS: Programming Tonga Institute of Higher Education.
Computer Programming Belaid Moa Phone: Office : ECS 115 Spring 2008.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
COE Computer Organization & Assembly Language Introduction HLL vs. Assembly Programming Languages.
©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.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
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.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
Introduction to Computers and Programming. Some definitions Algorithm: Algorithm: A procedure for solving a problem A procedure for solving a problem.
Programming. Software is made by programmers Computers need all kinds of software, from operating systems to applications People learn how to tell the.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
1 Chapter-01 Introduction to Computers and C++ Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Computer Programming I Hour 1-Getting Started. Word of Day —Chinese proverb A journey of a thousand miles is started by taking the first step. —Aristophanes.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
© Janice Regan, CMPT 128, Jan CMPT 128 Introduction to Computing Science for Engineering Students Creating a program.
Systems Software & Operating systems
Slide 1 Standard Grade Computing Studies Systems Software.
Laboratorio di Calcolo I Docente: prof. Berardi (Dip. Informatica) Lezione introduttiva su Computing ed esercitazioni di Unix/Linux tenute da Fabrizio.
Introduction CS 104: Applied C++ What is Programming? For some given problem: __________ a solution for it -- identify, organize & store the problem's.
1 CPSC 185 Introduction to Computing The course home page
Just as there are many human languages, there are many computer programming languages that can be used to develop software. Some are named after people,
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.
C o n f i d e n t i a l 1 Course: BCA Semester: III Subject Code : BC 0042 Subject Name: Operating Systems Unit number : 1 Unit Title: Overview of Operating.
PROGRAMMING LANGUAGES
Intermediate 2 Computing Unit 2 - Software Development Topic 2 - Software Development Languages and Environments.
1 3. Computing System Fundamentals 3.1 Language Translators.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Introduction 1 (Read Chap. 1) What is Programming? For some given problem: design a solution for it -- identify, organize & store the problem's data --
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
1.4 Representation of data in computer systems Instructions.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
By ILTAF MEHDI 1 COURSE TITLE: FUNDANENTALS OF PROGRAMMING INSTRUCTOR: ILTAF MEHDI.
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.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Compilers and Interpreters
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Computer Software.
Programming Languages
HIGH-LEVEL LANGUAGE PROGRAMMING PARADIGMS. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
INTRODUCTION TO COMPUTER PROGRAMMING ITC-314. Computer Programming  Computer Programming means creating a sequence of instructions to enable a computer.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
A LECTURE NOTE. Introduction to Programming languages.
Computer Basics.
Computer Systems Nat 5 Computing Science
Introduction to programming
Operating System Interface between a user and the computer hardware
CSCI-235 Micro-Computer Applications
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
Computer Systems Nat 5 Computing Science
Course: Introduction to Computers
Teaching Computing to GCSE
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
CMP 131 Introduction to Computer Programming
Programming.
ICT Programming Lesson 1:
An Introduction to Programming with C++ Fifth Edition
Computers, Programs, and Programming Languages
1.3.7 High- and low-level languages and their translators
Presentation transcript:

Course Introduction C++ An Introduction to Computing

Preliminaries Instructor: Office Hours: URL: Text: C++ An Introduction to Computing, by Adams, Leestma & Nyhoff Labs:

What is Programming? A sequence of statements that instruct a computer in how to solve a problem is called a program. The act of designing, writing and maintaining a program is called programming. People who write programs are called programmers.

What kinds of statements do computers understand? A computer only understands machine language statements. A machine language statement is a sequence of ones and zeros that cause the computer to perform a particular action, such as add, subtract, multiply,...

Machine Language (ML) ML statements are stored in a computer’s memory, which is a sequence of switches. For convenience of representation, an “on” switch is represented by 1, and an “off” switch is represented by 0. ML thus appears to be binary (base-2):

Early Computers... required a programmer to write in ML... –Easy to make mistakes! –Such mistakes are hard to find! –Not portable -- only runs on one kind of machine! Programming was very difficult!

A Bright Idea Devise a set of abbreviations (mnemonics) corresponding to the ML statements, plus a program to translate them into ML. The abbreviations are an assembly language, and the program is called an assembler. Assembler ADD

Assembly Languages Allowed a programmer to use mnemonics, which were more natural than binary. +Much easier to read programs +Much easier to find and fix mistakes –Still not portable to different machines

High Level Languages Devise a set of statements that are close to human language (if, while, do,...), plus a program to translate them into ML. The set of statements is called a high level language (HLL) and the program is called a compiler.

HLL Compilers Where an assembler translates one mnemonic into one ML statement, a HLL compiler translates one HLL statement into multiple ML statements. Compiler z = x + y;

HLLs High level languages (like C++) are +Much easier to read programs +Much easier to find and fix mistakes +Portable from one machine to another (so long as they keep to the language standard).

Objectives in Programming A program should solve a problem: +correctly (it actually solves the problem) +efficiently (without wasting time or space) +readably (understandable by another person) +in a user-friendly fashion (in a way that is easy for its user to use).

Summary There are “levels” to computer languages: –ML consists of “low” level binary statements, that is hard to read, write, and not portable. –Assembly uses “medium” level mnemonics: easier to read/write, but not portable. –C++ is a “high” level language that is even easier to read/write, and portable.