 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers and the Internet Outline 1.1 Introduction 1.2 What Is a Computer?

Slides:



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

 2002 Prentice Hall. All rights reserved. 1 Chapter 1 – Introduction to Computers, Internet and World Wide Web Outline 1.1Introduction 1.2What is a Computer?
Computers, Internet and Web Risanuri Hidayat, Ir.,M.Sc.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers and the Internet Outline 1.1 Introduction 1.2 What Is a Computer?
Java Environment (CSS444)
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
 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.
August 29, 2005ICP: Chapter 0: Introduction to Computers and Computing 1 Introduction or Computer Programming Chapter 0: Introduction to Computers and.
© Prentice Hall CHAPTER 3 Computer Software.
 2001 Deitel & Associates, Inc. All rights reserved. 1 Chapter 1 – Introduction to Computers, the Internet and the Web Outline 1.1Introduction 1.2The.
 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
1 6 Abacus An early device to record numeric values Blaise Pascal Mechanical device to add, subtract, divide & multiply Joseph Jacquard Jacquard’s Loom,
CS102 Introduction to Computer Programming
 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.
INTRODUCTION TO WEB DATABASE PROGRAMMING
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.
WEB DESIGN AND PROGRAMMING Who am I?. WEB DESIGN AND PROGRAMMING Who am I? Jason Green – often shortened to greenj in work systems, leading to the.
Chapter Lead Black Slide Powered by DeSiaMore Powered by DeSiaMore.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
Internet Infrastructure 1 (Review) University of Khartoum.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
 2002 Prentice Hall. All rights reserved. 1 Introduction to Visual Basic.NET,.NET Framework and Visual Studio.NET Outline 1.7Introduction to Visual Basic.NET.
 2002 Prentice Hall. All rights reserved. 1 Chapter 1 – Introduction to Computers, the Internet, the Web and C# Outline 1.7 C, C++, Visual Basic.NET and.
Lecture 1 Introduction to computers & VB.Net. What is a Computer? Examples? A device capable of  Performing computation  Making logical decisions 
Chapter 1 Introduction to Computers, the Internet and the World Wide Web.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 1 Advanced Painter Application Introducing Computers, the Internet and Visual Basic.
 2001 Prentice Hall, Inc. All rights reserved. Lecture 1 Internet and the World Wide Web Course structure Introduction XHTML Cascading Style Sheets JavaScript.
© 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.
 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?
1.8History of Java Java –Based on C and C++ –Originally developed in early 1991 for intelligent consumer electronic devices Market did not develop, project.
© 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.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
1. Introduction to Internet and to the Web. Motto People are using the web to build things they have not built or written or drawn or communicated anywhere.
1 MIS 131 Introduction to Algorithms and Programming 2015/2016 Fall - Chapter 1 -
Module 2 : Part 1 INTRODUCTION TO HARDWARE & SOFTWARE INTRODUCTION TO HARDWARE & SOFTWARE.
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.
Spring 09- ICE0124 Programming Fundamentals I Java Programming XuanTung Hoang Lecture No. 1.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 1.1 What Is a Computer? 1.2 Computer Organization.
 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers and the Internet Outline 1.1 Introduction 1.2 What Is a Computer?
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
Internet Overview (Chapter 1 in [2]). 2 Outline History of the Internet History of the Internet Seven Layers of the OSI Model Seven Layers of the OSI.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 1 – Introduction to Computers and the Internet Outline 1.2What is a Computer? 1.3Types of.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
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.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 1 Introduction.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Chapter 1 - Introduction to Computers and the Internet
Introduction to Visual Basic. NET,. NET Framework and Visual Studio
 2001 Prentice Hall, Inc. All rights reserved.
Chapter 1 – Introduction to Computers, the Internet, and the Web
CSCI-235 Micro-Computer Applications
Introduction to Computers and the Internet
Chapter 1 – Introduction to Computers and C++ Programming
Chapter 1 – Introduction to Computers, the Internet, and the Web
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
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:

 2003 Prentice Hall, Inc. All rights reserved. 1 Chapter 1 - Introduction to Computers and the Internet Outline 1.1 Introduction 1.2 What Is a Computer? 1.3 Types of Programming Languages 1.4 Other High-Level Languages 1.5 Structured Programming 1.6 History of the Internet 1.7 Personal Computing 1.8 History of the World Wide Web 1.9World Wide Web Consortium (W3C) 1.10 Hardware Trends 1.11 Key Software Trend: Object Technology 1.12 JavaScript: Object-Based Scripting for the Web 1.13 Browser Portability 1.14 C and C Java

 2003 Prentice Hall, Inc. All rights reserved. 2 Chapter 1 - Introduction to Computers and the Internet Outline 1.16Microsoft.NET 1.17 Dynamic HTML 1.18 Internet and World Wide Web How to Program 1.19 Web Resources

 2003 Prentice Hall, Inc. All rights reserved. 3 Objectives In this tutorial, you will learn: –To understand basic computing concepts. –To become familiar with different types of programming languages. –To understand the evolution of the Internet and the World Wide Web. –To understand the roles XHTML, JavaScript, JScript, Dynamic HTML, ASP.NET, Perl, PHP, ColdFusion, Python, Java servlets and JavaServer Pages have in developing distributed client/server applications for the Internet and the World Wide Web.

 2003 Prentice Hall, Inc. All rights reserved Introduction Internet and World Wide Web How to Program: Third Edition –Effective learning tool for both novices and experienced professionals –Emphasizes structured programming and object-based programming –The live-code approach All concepts presented in full working program examples Examples available in CD-ROM (back cover of book) and at –JavaScript Introduced in earlier chapters Provides solid foundation for computer programming and rest of book

 2003 Prentice Hall, Inc. All rights reserved Introduction Computer development –Computer use increasing in most fields –Computer costs and size decreasing Abundance of silicon drives down prices of silicon-chip technology Applications of this book –Prepares for higher learning in C++ and Java as well as object-oriented programming –Allows development of applications with graphical user interfaces (GUIs) Multimedia capabilities Integration with the Internet and World Wide Web

 2003 Prentice Hall, Inc. All rights reserved Introduction Book structure –Chapters 1-20 Covers XHTML, JavaScript, Dynamic HTML, Flash and Extensible Markup Language (XML) For applications running on client side (typically Netscape and Microsoft Internet Explorer) –Chapters Covers Web servers, databases, Active Server Pages, Perl/CGI, PHP, ColdFusion, Python, Java servlets and JavaServer Pages For applications running on server side (complex computer systems where Web sites usually reside)

 2003 Prentice Hall, Inc. All rights reserved What is a Computer? Computer –Device capable of Performing computations Making logical decisions –Works billions of times faster than human beings –Fastest supercomputers today Perform hundreds of billions of additions per second

 2003 Prentice Hall, Inc. All rights reserved. 8 Programs –Sets of instructions that process data –Guide computer through orderly sets of actions specified by computer programmers Computer system –Comprised of various hardware devices Keyboard Screen (monitor) Disks Memory Processing Units 1.2 What is a Computer?

 2003 Prentice Hall, Inc. All rights reserved. 9 Every computer divided into six units 1. Input unit “Receiving” section of computer Obtains data from input devices –Usually a keyboard, mouse, disk or scanner Places data at disposal of other units 2. Output unit “Shipping” section of computer Puts processed info on various output devices –Screens, paper printouts, speakers Makes info available outside the computer 1.2 What is a Computer?

 2003 Prentice Hall, Inc. All rights reserved Memory unit Rapid access, low capacity “warehouse” Retains information entered through input unit Retains info that has already been processed until can be sent to output unit Often called memory, primary memory, or random access memory (RAM) 4. Arithmetic and Logic Unit “Manufacturing” section of computer Performs calculations (addition, subtraction, multiplication and division) Contains decision mechanisms and can make comparisons 1.2 What is a Computer?

 2003 Prentice Hall, Inc. All rights reserved Central Processing Unit (CPU) “Administrative” section of computer Coordinates and supervises other sections 6. Secondary storage unit Long-term, high-capacity “warehouse” Stores programs or data not currently being used by other units on secondary storage devices (like discs) Takes longer to access than primary memory 1.2 What is a Computer?

 2003 Prentice Hall, Inc. All rights reserved Types of Programming Languages Computer programs –Called software –Programmers write instructions that comprise software in various programming languages Three general types of programming languages –Machine languages –Assembly languages –High-level languages

 2003 Prentice Hall, Inc. All rights reserved Types of Programming Languages Machine languages –“Natural language” of a particular computer –Defined by hardware design of computer –Generally consists of strings of numbers –Are machine dependent –Cumbersome for humans Example: Adding overtime pay to base pay and storing the result in gross pay –Slow and tedious for most programmers

 2003 Prentice Hall, Inc. All rights reserved Types of Programming Languages Assembly languages –Programmers began using English-like abbreviations to substitute for machine languages –Represents elementary operations of computer –Translator programs called assemblers convert assembly- language to machine-language –Example: LOAD BASEPAY ADD OVERPAY STORE GROSSPAY

 2003 Prentice Hall, Inc. All rights reserved Types of Programming Languages High-level languages –Developed as computer usage increased, assembly language proved inadequate and time-consuming –Single statements can be written to accomplish substantial tasks –Translator programs called compilers –Allow programmers to write instructions almost like every- day English –Example: grossPay = basePay + overTimePay

 2003 Prentice Hall, Inc. All rights reserved Types of Programming Languages High-level languages (II) –Much more desirable from programmer’s standpoint –Specific languages include C, C++, Visual Basic and Java Scripting languages: JavaScript, VBScript and Perl Among most powerful and widely used languages today –Interpreter programs developed to execute high-level programs without compiling Popular in program development environments –Once program developed, compiled version made

 2003 Prentice Hall, Inc. All rights reserved Other High-Level Languages Hundreds developed, only few widely used –COBOL (COmmon Business Oriented Language) Used primarily for commercial applications that require precise and efficient manipulation of large amounts of data Half of all business software still programmed in COBOL –Pascal –BASIC Simple language to help novices become comfortable with programming

 2003 Prentice Hall, Inc. All rights reserved Structured Programming 1960’s –People realized that software development far more complex than imagined –Resulted in evolution of structured programming Disciplined approach to writing computer programs Clearer and easier to debug and modify than unstructured programs Pascal –Designed for teaching structured programming in an academic environment –Became preferred programming language in most universities

 2003 Prentice Hall, Inc. All rights reserved Structured Programming Ada programming language –Developed under sponsorship of Dept. of Defense (DOD) –Wanted single language to fulfill all DOD programming needs –Based on Pascal but different in end –Multitasking capability Many activities can occur in parallel Not featured in C and C++ Similar to Java multithreading technique

 2003 Prentice Hall, Inc. All rights reserved History of the Internet ARPANET –Implemented in late 1960’s by ARPA (Advanced Research Projects Agency of DOD) –Networked computer systems of a dozen universities and institutions with 56KB communications lines –Grandparent of today’s Internet –Intended to allow computers to be shared –Became clear that key benefit was allowing fast communication between researchers – electronic-mail ( )

 2003 Prentice Hall, Inc. All rights reserved History of the Internet ARPA’s goals –Allow multiple users to send and receive info at same time –Network operated packet switching technique Digital data sent in small packages called packets Packets contained data, address info, error-control info and sequencing info Greatly reduced transmission costs of dedicated communications lines –Network designed to be operated without centralized control If portion of network fails, remaining portions still able to route packets

 2003 Prentice Hall, Inc. All rights reserved History of the Internet Transmission Control Protocol (TCP) –Name of protocols for communicating over ARPAnet –Ensured that messages were properly routed and that they arrived intact Organizations implemented own networks –Used both for intra-organization and communication

 2003 Prentice Hall, Inc. All rights reserved History of the Internet Huge variety of networking hardware and software appeared –ARPA achieved inter-communication between all platforms with development of the IP Internetworking Protocol Current architecture of Internet –Combined set of protocols called TCP/IP The Internet –Limited to universities and research institutions –Military became big user –Next, government decided to access Internet for commercial purposes

 2003 Prentice Hall, Inc. All rights reserved History of the Internet Internet traffic grew –Businesses spent heavily to improve Internet Better service their clients –Fierce competition among communications carriers and hardware and software suppliers –Result Bandwidth (info carrying capacity) of Internet increased tremendously Costs plummeted

 2003 Prentice Hall, Inc. All rights reserved Personal Computing IBM –1981, introduced IBM Personal Computer –Made personal computing legitimate in business, industry and government organizations –Computers were “stand-alone” units Info only shared between computers through exchange of discs –Machines could be linked Over telephone lines Over Local Area Networks (LANs) –Led to distributed computing

 2003 Prentice Hall, Inc. All rights reserved Personal Computing Computers today –As powerful as million dollar machines from 20 years ago –Workstations Most powerful desktops today Provide users with enormous capabilities –Information easily shared over networks Networks controlled by servers –Common programs and data used by client computers –Popular operating systems UNIX, Mac OS X, Windows, Windows NT, Linux

 2003 Prentice Hall, Inc. All rights reserved History of the World Wide Web WWW –Allows computer users to locate and view multimedia-based documents –Introduced in 1990 by Tim Berners-Lee Internet today –Mixes computing and communications technologies –Makes information constantly and instantly available to anyone with a connection

 2003 Prentice Hall, Inc. All rights reserved World Wide Web Consortium (W3C) W3C –Founded in 1994 by Tim Berners-Lee Devoted to developing non-proprietary and interoperable technologies for the World Wide Web and making the Web universally accessible –Standardization W3C Recommendations: technologies standardized by W3C –include Extensible HyperText Markup Language (XHTML), Cascading Style Sheets (CSS) and the Extensible Markup Language (XML) Document must pass through Working Draft, Candidate Recommendation and Proposed Recommendation phases before considered for W3C Recommendation

 2003 Prentice Hall, Inc. All rights reserved World Wide Web Consortium (W3C) W3C Structure –3 Hosts Massachusetts Institute of Technology (MIT) European Research Consortium for Informatics and Mathematics (ERCIM) Keio University of Japan –400 Members W3C homepage at W3C Goals –User Interface Domain –Technology and Society Domain –Architecture Domain and Web Accessibility Initiatives

 2003 Prentice Hall, Inc. All rights reserved Hardware Trends Improving technologies –Internet community thrives on improvements of Hardware Software Communications –Cost of products and services Consistently dropping over the decades –Computer capacity and speed Doubles every two years (on average) –Microprocessor chip Laid groundwork in late 1970s and 1980s for productivity improvements of the 1990s

 2003 Prentice Hall, Inc. All rights reserved The Key Software Trend: Object Technology Costs –Hardware costs dropping –Software development costs rising More sophisticated and powerful programs being developed Objects –Reusable software components that model items in the real world –Makes software developers more productive –Object-oriented programs often easier to understand, correct and modify than older types of programs

 2003 Prentice Hall, Inc. All rights reserved The Key Software Trend: Object Technology Structured Programming –Led to first improvements in software technology Larger improvements –Only appeared with object-oriented programming in 1980s and 1990s Object technology –Dates to 1960s –C++, developed in 1980s, based on two languages C – Developed to implement the UNIX OS in early 1970’s Simula 67 – Simulation programming language from 1967 –C++ absorbed capabilities of C and added Simula’s capabilities of creating and manipulating objects

 2003 Prentice Hall, Inc. All rights reserved The Key Software Trend: Object Technology Object technology –Packaging scheme that helps create meaningful software units Large and highly focused on particular applications areas –Before appeared, programming languages were focused on actions (verbs) rather than on objects (nouns) Programmers would program primarily with verbs Made program awkward We live in a world filled with complex objects and simple actions

 2003 Prentice Hall, Inc. All rights reserved The Key Software Trend: Object Technology Object technology (continued) –Object-oriented programming Programmers work in manner similar to how they see the world More natural process Significant productivity enhancements –Procedural programming Not particularly reusable Forces programmers to constantly “re-invent the wheel” –Wastes time and resources –Objects Software modules Kept in libraries Reusable – save time and resources

 2003 Prentice Hall, Inc. All rights reserved JavaScript: Object-Based Scripting for the Web JavaScript –Attractive package for advancing level of programming language education –Object-based language –Supports proper software engineering techniques –Free for download in today’s most popular Web browsers Attractive to colleges Bug fixes and new versions easily obtained –Powerful scripting language Portable Programs execute interpretively on client machines

 2003 Prentice Hall, Inc. All rights reserved Browser Portability Browser portability –Great challenge Great diversity of client browsers in use Many different platforms also in use Difficult to –Know capabilities and features of all browsers and platforms in use –Find correct mix between absolute portability, complexity and usability of features

 2003 Prentice Hall, Inc. All rights reserved C and C++ History of C and C++ –Evolved from B language (developed by Dennis Ritchie) –C Implemented in 1972 as contemporary of Pascal C++ developed by Bjarne Stroustrup in 1980s C++ Initially used in Unix, today used in virtually all new operating systems –Deitel books in early 90’s encouraged use of C over Pascal Many believed C to be too difficult Advantages of C++ –Extends C programming into object orientation –Older C code may be integrated into C++

 2003 Prentice Hall, Inc. All rights reserved Java History of Java –Project Green (1991): developed C based language (later called Java) for intelligent consumer electronic devices Advanced by World Wide Web explosion in 1993: potential to create Web pages with dynamic content Java introduced in May of 1995 Advantages of Java –Allows Web pages with dynamic and interactive content –Allows Large-scale enterprise applications –Enhances Web Servers –Provides applications for consumer devices –Now one of most widely implemented languages in world

 2003 Prentice Hall, Inc. All rights reserved Microsoft.NET.NET initiative –June 2000 –Use multiple programming languages in same project –Internet and Web development ASP.NET allows complex Web-based client-server applications Brings software reuse to Web –.NET Framework Framework Class Library

 2003 Prentice Hall, Inc. All rights reserved Dynamic HTML DHTML –Two versions Microsoft Netscape –Consists of number of technologies freely available for download –Used for developing high-performance, Web-based applications Much of application’s work performed directly on client rather than on server or Internet

 2003 Prentice Hall, Inc. All rights reserved Internet and World Wide Web How to Program Rise of electronic-commerce (e-commerce) –Reconstruction of modern business Internet and World Wide Web How to Program –Teaches programming languages, programming language principles and Internet and Web-based application technologies –Intended audiences Introductory courses in C++, Java and Visual Basic Upper-level elective programming courses Corporate training programs for professional programmers

 2003 Prentice Hall, Inc. All rights reserved Internet and World Wide Web How to Program Internet and World Wide Web How to Program includes treatments of 7 other popular programming languages –Microsoft Active Server Pages.NET (ASP.NET) –Perl and Common Gateway Interface (CGI) –PHP –ColdFusion –Python –Java Servlets and JavaServer Pages