 2008 Pearson Education, Inc. All rights reserved. 1 1 1 Introduction to Computers, the Internet and World Wide Web.

Slides:



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

 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming Outline 1.6 Machine Languages, Assembly Languages,
Introduction Kingdom of Saudi Arabia Shaqra University
Three types of computer languages
Java Environment (CSS444)
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Introduction to Computer Programming CSC 1401: Introduction to Programming with Java Lecture 2 Wanda M. Kunkle.
 2007 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the Web.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
 2003 Prentice Hall, Inc. All rights reserved. 1 Machine Languages, Assembly Languages, and High-level Languages Three types of computer languages 1.Machine.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
 2002 Prentice Hall. All rights reserved. Week 1 - Introduction to Object- Oriented Programming Outline 1.1 Machine Languages, Assembly Languages and.
 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
COMPUTER PROGRAMMING. Introduction to C++ History Merges notions from Smalltalk and notions from C The class concept was borrowed from Simular67 Developed.
 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.
COMPUTER SCIENCE I C++ INTRODUCTION
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
“C” Programming Language What is language ? Language is medium of communication. If two persons want to communicate with each other, they have to use.
 2008 Pearson Education, Inc. All rights reserved. 1 The chief merit of language is clearness. — Galen Our life is frittered away by detail…. Simplify,
Lecture 1: Introduction to Computers. OBJECTIVES In this lecture you will learn:  Basic computer concepts.  The different types of programming languages.
 2005 Pearson Education, Inc. All rights reserved. 1 Introduction & The Java Virtual Machine Small Java Chapter 1 1.
Programming Design Ku-Yaw Chang Assistant Professor, Department of Computer Science and Information Engineering Da-Yeh University.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Chapter 1 Introduction to Computers, the Internet and the World Wide Web.
COMPSCI 174- Introduction to C++ Class hour Section 01: MWF 9:55am – 10:45am. Hyer Hall 210.
Spring 2005, Gülcihan Özdemir Dağ BIL104E: Introduction to Scientific and Engineering Computing, Spring Outline 1.1Introduction 1.2What Is a Computer?
Computer programming.
 2005 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and the World Wide Web.
History of C and C++ C++ evolved from C ANSI C C++ “spruces up” C
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 1 – Car Payment Calculator and Guess the Number.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
© 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.
 2008 Pearson Education, Inc. All rights reserved. 1 CISC 1600 – Computer Science I Fall 2010 Introduction to C++ Programming Chapters 1 and 2 (Deitel.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 Introduction to Computers, the Internet and.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
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.
INTRODUCTION Kingdom of Saudi Arabia Princess Nora bint Abdul Rahman University College of Computer Since and Information System CS240.
Programming Fundamentals1 Chapter 1 INTRODUCTION TO COMPUTER AND PROGRAMMING.
 2006 Pearson Education, Inc. All rights reserved. 1 C++ How to Program, 5th Edition Deitel Dev C++
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.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
CS2301:Computer Programming 2
CHAPTER 1: INTRODUCTION C++ Programming. CS 241 Course URL: Text Book: C++ How to Program, DETITEL & DEITEL, eighth Edition.
Principles of Programming Chapter 1: Introduction  In this chapter you will learn about:  Overview of Computer Component  Overview of Programming 
CS1110: Computer Science I Chapter 1. What Is a Computer? A computer is a device capable of performing computations and making logical decisions At a.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
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:
 2003 Prentice Hall, Inc. All rights reserved Introduction Software –Instructions to command computer to perform actions and make decisions Hardware.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
 2001 Prentice Hall, Inc. All rights reserved.
Introduction to Computers, the Internet and the Web
Introduction to Computers, the Internet and the World Wide Web
Introduction to Computers
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1 – Introduction to Computers and C++ Programming
1.6 Machine Languages, Assembly Languages, and High-level Languages
Chapter 1 Introduction to Computers, the Internet and the Web
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers and C++ Programming
Presentation transcript:

 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web

 2008 Pearson Education, Inc. All rights reserved Introduction 1.8 Machine Languages, Assembly Languages and High- Level Languages 1.9 History of C and C C++ Standard Library 1.11 History of Java 1.12 Fortran, COBOL, Pascal and Ada 1.13 Basic, Visual Basic, Visual C++, C# and.NET 1.14 Key Software Trend: Object Technology 1.15 Typical C++ Development Environment 1.19 Game Programming with the Ogre Libraries 1.20 Future of C++: Open Source Boost Libraries, TR1 and C++0x

3 1.1 Introduction Hardware – Various devices comprising computer Keyboard, screen, mouse, disks, memory, CD-ROM, processing units, etc. Software – Instructions to command computer to perform actions and make decisions Standardized version of C++ – United States American National Standards Institute (ANSI) – Worldwide International Organization for Standardization (ISO) Structured programming Object-oriented programming

4 1.8 Machine Languages, Assembly Languages and High-Level Languages Three types of computer languages –Machine language Only language computer directly understands – “Natural language” of computer – Defined by hardware design Generally consist of strings of numbers – Ultimately 0s and 1s Instruct computers to perform elementary operations Cumbersome for humans Example –

5 1.8 Machine Languages, Assembly Languages and High-Level Languages (Cont.) Three types of computer languages (Cont.) –Assembly language English-like abbreviations representing elementary computer operations Clearer to humans Incomprehensible to computers – Convert to machine language by translator programs (assemblers) Example – loadbasepay add overpay store grosspay

6 1.8 Machine Languages, Assembly Languages and High-Level Languages (Cont.) Three types of computer languages (Cont.) –High-level languages Similar to everyday English – Uses common mathematical notations Single statements accomplish substantial tasks Converted to machine language by translator programs (compilers) Interpreter programs – Directly execute high-level language programs – Execute more slowly than the compiled program Example – grossPay = basePay + overTimePay

7 1.9 History of C and C++ History of C – Evolved from BCPL and B Developed by Dennis Ritchie (Bell Laboratories) – Development language of UNIX – Hardware independent Can write portable programs – ANSI and ISO standard for C published in 1990 ANSI/ISO 9899: 1990

8 Portability Tip 1.1 Because C is a standardized, hardware- independent, widely available language, applications written in C often can be run with little or no modification on a wide range of computer systems.

9 1.9 History of C and C++ (Cont.) History of C++ – Extension of C Developed by Bjarne Stroustrup (Bell Laboratories) in e arly 1980s – Provides new features to “spruce up” C – Provides capabilities for object-oriented programming Objects: reusable software components – Model items in the real world Object-oriented programs – Easier to understand, correct and modify

C++ Standard Library C++ programs – Built from pieces called classes and functions C++ Standard Library – Rich collections of existing classes and functions Reusable in new applications

11 Performance Tip 1.1 Using C++ Standard Library functions and classes instead of writing your own versions can improve program performance, because they are written carefully to perform efficiently. This technique also shortens program development time.

12 Portability Tip 1.2 Using C++ Standard Library functions and classes instead of writing your own improves program portability, because they are included in every C++ implementation.

Typical C++ Development Environment C++ programs normally undergo six phases – Edit Programmer writes program (and stores source code on disk) – Preprocess Perform certain manipulations before compilation – Compile Compiler translates C++ programs into machine languages – Link Link object code with missing functions and data – Load Transfer executable image to memory – Execute Execute the program one instruction at a time

14 Fig. 1.1 | Typical C++ environment.

Typical C++ Development Environment (Cont.) Input/output – cin Standard input stream Normally inputs from keyboard – cout Standard output stream Normally outputs to computer screen – cerr Standard error stream Displays error messages

Game Programming with the Ogre Libraries Ogre (Object-Oriented Graphics Rendering Engine) – An open-source project maintained by the Ogre team at – Provides an object-oriented interface for 3D graphics programming, and runs on the Windows, Linux and Mac platforms One of the leading graphics engines – Used in many commercial products including video games OgreAL – A wrapper around the OpenAL audio library – For integrating sound functionality into Ogre code

Future of C++: Open Source Boost Libraries Bjarne Stroustrup’s vision for the future of C++ – Make C++ easier to learn – Improve library building capabilities – Increase compatibility with the C programming language Boost C++ Libraries – Free, open source libraries created by members of the C++ community – Provide C++ programmers with useful, well-designed libraries that work well with the existing C++ Standard Library – Can be used on a wide variety of platforms with many different compilers