C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.

Slides:



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

Three types of computer languages
Java Environment (CSS444)
Introduction to Computers and Programming Using Java Professor Deena Engel V : Sections 1 and 4 Office hours: Tuesdays & Thursdays.
 2007 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the Web.
Bil104E Introduction to Scientific and Engineering Programming
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
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.
Introduction to Computers and Programming Using Java Professor Deena Engel V : Section 1 Office hours: MW 12:00 - 1:00 in room.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
August 29, 2005ICP: Chapter 0: Introduction to Computers and Computing 1 Introduction or Computer Programming Chapter 0: Introduction to Computers and.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
C programming language Computer Programming Language 計算機程式設計 Chapter 1 Overview 台大電機系 吳安宇教授 Sept
Introduction to computers and programming RIZWAN REHMAN Assistant Professor Centre For Computer Studies.
1 6 Abacus An early device to record numeric values Blaise Pascal Mechanical device to add, subtract, divide & multiply Joseph Jacquard Jacquard’s Loom,
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
COMPUTER SCIENCE I C++ INTRODUCTION
Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI CSCI.
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.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
Lecture 1: Introduction to Computers. OBJECTIVES In this lecture you will learn:  Basic computer concepts.  The different types of programming languages.
Programming Design Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
 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 
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What is a Computer?
Chapter 1 Introduction to Computers, the Internet and the World Wide Web.
Spring 2005, Gülcihan Özdemir Dağ BIL104E: Introduction to Scientific and Engineering Computing, Spring Outline 1.1Introduction 1.2What Is a Computer?
History of C and C++ C++ evolved from C ANSI C C++ “spruces up” C
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved Computer Organization Six logical units in every.
 2002 Prentice Hall. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer?
© 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.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 Introduction to Computers, the Internet and.
Outline 1 MECH 215 Programming for Mech. and Ind. Eng. I Prof. Chadi Assi CB , Ext. 5799
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
1 Programming Fundamentals How to Program in C++ How to Program in C++
COMPUTER PROGRAMMING. Computer programming the objective of the module to gain the necessary skills to develop a computer program using one of the high.
 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.
Computer Organization & Assembly Language © by DR. M. Amer.
Spring 09- ICE0124 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 1.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
Chapter 1 An Overview of Computers and Programming Languages.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming Dr. Halla Abdel Hameed.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Computer Organization 1.4 Evolution.
Structured programming 1 st stage By Heba.A Raheem Assist Lecturer College of Sciences/Computer Sciences Department.
Introduction to Computers - Hardware
Chapter 1 Introduction 2nd Semester H
 2001 Prentice Hall, Inc. All rights reserved.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Programming
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1 – Introduction to Computers and C++ Programming
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
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
Introduction to Computers, Internet and the World Wide Web
Chapter 1 – Introduction to Computers and C++ Programming
Presentation transcript:

C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department

The Hashemite University2 Outline Introduction. C++ overview. Computer organization and hardware trends. Evolution of operating systems and types of computing. Programming languages. Basics of a typical C++ environment.

The Hashemite University3 Introduction In this course you will learn C++ and the legacy C code. It is your first step in the software programming world. It will provide you with the needed tools and background to learn object- oriented programming.

The Hashemite University4 What is C++? A powerful programming language that enables you to write instructions (i.e. software) to drive the hardware of the computer (i.e. to perform actions and take decisions). But first, what is computers? What is hardware? And what is software?

The Hashemite University5 What is a Computer? Computer A device capable of performing computations and making logical decisions in a very fast manner. Computer programs Sets of instructions that control a computer’s processing of data Hardware Various devices comprising a computer Examples: keyboard, screen, mouse, disks, memory, CD-ROM, and processing units Software Programs that run a computer

The Hashemite University6 Computer Organization Six logical units in every computer: Input unit Obtains information from input devices (keyboard, mouse). Output unit Outputs information (to screen, to printer, to control other devices) Memory unit Rapid access, low capacity, stores input information and programs while they are being executed (active programs and data). Arithmetic and logic unit (ALU) Performs arithmetic calculations and logical decisions. Central processing unit (CPU) Supervises and coordinates the other sections of the computer (called the heart of the computer). Secondary storage unit Cheap, long-term, high-capacity storage, stores inactive programs.

The Hashemite University7 Hardware Trends Every year or two computers approximately double the following: The amount of memory they contain Memory used to execute programs The amount of secondary storage they contain Secondary storage (such as disk storage) is used to hold programs and data over time Their processor speeds The speed at which computers execute their programs This development is accompanied with a decrease in prices and computers cost.

The Hashemite University8 Evolution of Operating Systems Operating system (OS) is the intermediary software that lies between the hardware and the computer applications where it enables the interfacing between the user and the computer hardware. Operating systems development: Batch processing Do only one job or task or program at a time while processing data in groups or batches. Operating systems Manage transitions between jobs. Increased throughput : Amount of work computers process. Still batch processing. Multiprogramming Many jobs or tasks sharing a computer’s resources Timesharing Special case of multiprogramming. Access computer resources via terminals. Perform a small portion of one user’s job then moves on to service the next user

The Hashemite University9 Types of Computing Personal computers Economical enough for individual Distributed computing Organizations computing is distributed over networks Client/server computing Sharing of information across computer networks between servers (such as file servers, servers, etc.) and clients (personal computers connected to the network)

The Hashemite University10 Programming Languages I Three types of programming languages Machine languages Strings of numbers giving machine specific instructions. Computers can only understand this language. Example: Machine dependent: every machine has its own language. Hard to be understood by humans. Hard to be used in programming. Too slow and tedious. Error prone.

The Hashemite University11 Programming Languages II Assembly languages English-like abbreviations representing elementary computer operations so it is easier to be understood by humans. Translated or converted into machine language via assemblers. Also, it is slow and hard to be used in programming. Machine dependent. Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY

The Hashemite University12 Programming Languages III High-level languages Similar to everyday English, use mathematical notations. Translated into machine language via compilers (compile the whole program at once). Interpreters are used to execute high level languages without need to compile them into machine language and it execute single line at a time. Compiled programs are faster than the interpreted ones. Fast and easy for programming. Machine independent. Example: grossPay = basePay + overTimePay

The Hashemite University13 Programming Languages IV It is common to classify the computer programming languages into two types: Low level programming languages which includes both the machine and assembly languages. High level languages as in the previous slide.

The Hashemite University14 Example of High-level Languages Other high-level languages C and C++. Java Visual basic 6/.Net C#.Net FORTRAN Used in scientific and engineering applications COBOL Used to manipulate large amounts of data Pascal Used to teach structured programming

The Hashemite University15 History of C and C++ C++ evolved from C C evolved from two other programming languages: BCPL and B which are used mainly to develop operating systems and compilers. ANSI C: standard of C and C++ ANSI (American National Standard Institution ) has cooperated with ISO (International Organization for Standardization) to established worldwide standards for C and C++ programming to make C++ programs portable. C99 is the latest ANSI standard of C/C++ C++ “spruces up” C Provides capabilities for object-oriented programming Objects are reusable software components that model things in the real world Object-oriented programs are easy to understand, correct and modify

The Hashemite University16 C++ Standard Library C++ programs Built from pieces called classes and functions. C++ standard library Provides rich collections of existing classes and functions for all programmers to use.

The Hashemite University17 Basics of a Typical C++ Environment Phases of C++ Programs: 1.Edit (create.h and.cpp files): create the source code or file 2.Preprocess 3.Compile: creates the object code 4.Link: creates the executable file 5.Load 6.Execute Loader Primary Memory Program is created in the editor and stored on disk. Preprocessor program processes the code. Loader puts program in memory. CPU takes each instruction and executes it, possibly storing new data values as the program executes. Compiler Compiler creates object code and stores it on disk. Linker links the object code with the libraries, creates a.out and stores it on disk Editor Preprocessor Linker CPU Primary Memory Disk

The Hashemite University18 Additional Notes Check the Black Board to get your copy of the lecture. The lecture covers the following sections from the textbook: Chapter 1: Sections 1.1 – 1.5, 1.8 – 1.10, and 1.15.