About the Presentations The presentations cover the objectives found in the opening of each chapter All chapter objectives are listed in the beginning.

Slides:



Advertisements
Similar presentations
Chapter 1 An Overview of Computers and Programming Languages.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Overview of Computers & Programming Languages Chapter 1.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Chapter Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing Describe.
Chapter 1 The Big Picture Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing.
COMP 14 Introduction to Programming
Chapter 1: An Overview of Computers and Programming Languages
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: Program Design Including Data Structures, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Chapter 1 The Big Picture Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing.
1 Chapter 1 The Big Picture. 2 2 Computing systems are dynamic entities used to solve problems and interact with their environment. They consist of devices,
1 6 Abacus An early device to record numeric values Blaise Pascal Mechanical device to add, subtract, divide & multiply Joseph Jacquard Jacquard’s Loom,
Chapter 1 The Big Picture Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing.
CHAPTER 1 AN OVERVIEW OF COMPUTERS AND PROGRAMMING LANGUAGES.
 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.
Chapter 01 Nell Dale & John Lewis.
Chapter 1: An Overview of Computers and Programming Languages.
CSC 111 Java Programming I. Java Programming: From Problem Analysis to Program Design, Second Edition  Instructor – Salwa Hamad Al-Jasser  Office.
Chapter 1 An Overview of Computers and Programming Languages.
EGR 2261 Engineering Problem Solving Using C and C++ Professor Nick Reeder.
Introduction Chapter 1. 1 History of Computers Development of computers began with many early inventions: The abacus helped early societies perform computations.
Chapter 1 The Big Picture.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design, Fourth Edition Chapter 1: An Overview of Computers and Programming Languages.
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 1: An Overview of Computers and Programming Languages.
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 1: An Overview of Computers and Programming Languages.
Visual C++ Programming: Concepts and Projects
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Chapter 1 Introduction.
C++ Programming: Program Design Including Data Structures, Fourth Edition Chapter 1: An Overview of Computers and Programming Languages.
J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program Design, D.S. Malik D.S. Malik.
Chapter 1 The Big Picture Chapter Goals Describe the layers of a computer system Describe the concept of abstraction and its relationship to computing.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Extended Prelude to Programming Concepts & Design, 3/e by Stewart Venit and.
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
C++ Programming: From Problem Analysis to Program Design, Fourth Edition Chapter 1: An Overview of Computers and Programming Languages.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
1 Chapter 1 Programming Languages Evolution of Programming Languages To run a Java program: Java instructions need to be translated into an intermediate.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
C++ Programming: Program Design Including Data Structures, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Chapter 1 An Overview of Computers and Programming Languages.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Computer A Computer may be defined as an electronic device that operates upon data. So, a computer can store, process and retrieve data as and when desired.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
Java Programming: Guided Learning with Early Objects Chapter 0 An Overview of Computer and Programming Languages.
Java Programming: From the Ground Up
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 The Big Picture
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1: An Overview of Computers and Programming Languages
About the Presentations
Chapter 1: An Overview of Computers and Programming Languages
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
About the Presentations
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Topics Introduction Hardware and Software How Computers Store Data
Presentation transcript:

About the Presentations The presentations cover the objectives found in the opening of each chapter All chapter objectives are listed in the beginning of each presentation You may customize the presentations to fit your class needs Some figures from the chapters are included; a complete set of images from the book can be found on the Instructor Resources disc

Java Programming: From Problem Analysis to Program Design, 5e Chapter 1 An Overview of Computers and Programming Languages

3Java Programming: From Problem Analysis to Program Design, 5e Chapter Objectives Learn about different types of computers Explore the hardware and software components of a computer system Learn about the language of a computer Learn about the evolution of programming languages Examine high-level programming languages

4Java Programming: From Problem Analysis to Program Design, 5e Chapter Objectives (continued) Discover what a compiler is and what it does Examine how a Java program is processed Learn what an algorithm is and explore problem-solving techniques Become aware of structured and object- oriented programming design methodologies

5Java Programming: From Problem Analysis to Program Design, 5e Introduction Computers have greatly affected our daily lives – helping us complete many tasks Computer programs (software) are designed specifically for each task Software is created with programming languages Java is an example of a programming language

6Java Programming: From Problem Analysis to Program Design, 5e An Overview of the History of Computers The first device known to carry out calculations was the abacus The abacus uses a system of sliding beads on a rack for addition and subtraction Blaise Pascal invented the calculating device called the Pascaline

An Overview of the History of Computers (continued) In 1819, Joseph Jacquard, a French weaver, discovered that the weaving instructions for his looms could be stored on cards with holes punched in them In the early and mid-1800s, Charles Babbage, an English mathematician and physical scientist, designed two calculating machines: the difference engine and the analytical engine Java Programming: From Problem Analysis to Program Design, 5e7

8 An Overview of the History of Computers (continued) The first computer-like machine was the Mark I –Built in 1944 –Used punched cards to feed data into the machine –52 feet long, weighed 50 tons, and had 750,000 parts In 1946, ENIAC (Electronic Numerical Integrator and Calculator) was built at the University of Pennsylvania –Contained 18,000 vacuum tubes and weighed some 30 tons

An Overview of the History of Computers (continued) In 1956, the invention of the transistors resulted in smaller, faster, more reliable, and more energy-efficient computers This era also saw the emergence of the software development industry with the introduction of FORTRAN and COBOL, two early programming languages In 1970, the microprocessor, an entire CPU on a single chip, was invented Java Programming: From Problem Analysis to Program Design, 5e9

10Java Programming: From Problem Analysis to Program Design, 5e An Overview of the History of Computers (continued) In 1977, Stephen Wozniak and Steven Jobs designed and built the first Apple computer in their garage In 1981, IBM introduced its personal computer (PC) Modern-day computers are very powerful, reliable, and easy to use –Can accept spoken-word instructions and imitate human reasoning through artificial intelligence

An Overview of the History of Computers (continued) A computer is an electronic device capable of performing commands The basic commands that a computer performs are input (get data), output (display results), storage, and performance of arithmetic and logical operations Java Programming: From Problem Analysis to Program Design, 5e11

12Java Programming: From Problem Analysis to Program Design, 5e Elements of a Computer System A computer has two components –Hardware –Software

13Java Programming: From Problem Analysis to Program Design, 5e Hardware Components of a Computer Central processing unit (CPU) Main memory

14Java Programming: From Problem Analysis to Program Design, 5e Central Processing Unit Arithmetic and logical operations are carried out inside the CPU

15Java Programming: From Problem Analysis to Program Design, 5e Central Processing Unit and Main Memory Figure 1-1

16Java Programming: From Problem Analysis to Program Design, 5e Main Memory Ordered sequence of cells (memory cells) Directly connected to CPU All programs must be brought into main memory before execution When power is turned off, everything in main memory is lost

17Java Programming: From Problem Analysis to Program Design, 5e Secondary Storage Provides permanent storage for information Examples of secondary storage: –Hard disks –Floppy disks –Flash memory –ZIP disks –CD-ROMs –Tapes

18Java Programming: From Problem Analysis to Program Design, 5e Input Devices Definition: devices that feed data and computer programs into computers Examples –Keyboard –Mouse –Secondary storage

19Java Programming: From Problem Analysis to Program Design, 5e Output Devices Definition: devices that the computer uses to display results Examples –Printer –Monitor –Secondary storage

20Java Programming: From Problem Analysis to Program Design, 5e Input/Output Devices Figure 1-2

21Java Programming: From Problem Analysis to Program Design, 5e Software Software consists of programs written to perform specific tasks Two types of programs –System programs –Application programs

22Java Programming: From Problem Analysis to Program Design, 5e System Programs System programs control the computer The operating system is first to load when you turn on a computer

23Java Programming: From Problem Analysis to Program Design, 5e Operating System (OS) OS monitors overall activity of the computer and provides services Example services –Memory management –Input/output –Activities –Storage management

24Java Programming: From Problem Analysis to Program Design, 5e Application Programs Written using programming languages Perform a specific task Run by the OS Example programs –Word processors –Spreadsheets –Games

25Java Programming: From Problem Analysis to Program Design, 5e Language of a Computer Machine language: the most basic language of a computer A sequence of 0s and 1s Every computer directly understands its own machine language A bit is a binary digit, 0 or 1 A byte is a sequence of eight bits

26Java Programming: From Problem Analysis to Program Design, 5e Language of a Computer (continued)

27Java Programming: From Problem Analysis to Program Design, 5e Evolution of Programming Languages Early computers programmed in machine language Assembly languages were developed to make programmer’s job easier In assembly language, an instruction is an easy-to-remember form called a mnemonic Assembler: translates assembly language instructions into machine language

28Java Programming: From Problem Analysis to Program Design, 5e Instructions in Assembly and Machine Language

29Java Programming: From Problem Analysis to Program Design, 5e Evolution of Programming Languages High-level languages make programming easier Closer to spoken languages Examples –Basic –FORTRAN –COBOL –C/C++ –Java

30Java Programming: From Problem Analysis to Program Design, 5e Evolution of Programming Languages (continued) To run a Java program: 1.Java instructions need to be translated into an intermediate language called bytecode 2. Then the bytecode is interpreted into a particular machine language

31Java Programming: From Problem Analysis to Program Design, 5e Evolution of Programming Languages (continued) Compiler: a program that translates a program written in a high-level language into the equivalent machine language –In the case of Java, this machine language is the bytecode Java Virtual Machine (JVM): hypothetical computer developed to make Java programs machine independent

32Java Programming: From Problem Analysis to Program Design, 5e A Java Program Output:

33Java Programming: From Problem Analysis to Program Design, 5e Processing a Java Program Two types of Java programs: applications and applets Source program: written in a high-level language Loader: transfers the compiled code (bytecode) into main memory Interpreter: reads and translates each bytecode instruction into machine language and then executes it

34Java Programming: From Problem Analysis to Program Design, 5e Processing a Java Program (continued) Figure 1-3

35Java Programming: From Problem Analysis to Program Design, 5e Internet, World Wide Web, Browser, and Java The Internet is an interconnection of networks that allows computers around the world to communicate with each other In 1969, the U.S. Department of Defense’s Advanced Research Project Agency (ARPA) funded research projects to investigate and develop techniques and technologies to interlink networks This was called the internetting project, and the funding resulted in ARPANET, which eventually became known as the “Internet” The Internet allows computers to be connected and communicate with each other

36Java Programming: From Problem Analysis to Program Design, 5e Internet, World Wide Web, Browser, and Java (continued) World Wide Web (WWW), or Web, uses software programs that enable computer users to access documents and files (including images, audio, and video) on almost any subject over the Internet with the click of a mouse Computers around the world communicate via the Internet; the World Wide Web makes that communication a fun activity

37Java Programming: From Problem Analysis to Program Design, 5e Internet, World Wide Web, Browser, and Java (continued) The primary language for the Web is known as Hypertext Markup Language (HTML) Java applets are programs that run from a Web browser and make the Web responsive and interactive Two well-known browsers are Mozilla Firefox and Internet Explorer Java applets can run in either browser Through the use of applets, the Web becomes responsive, interactive, and fun to use

38Java Programming: From Problem Analysis to Program Design, 5e Problem-Analysis-Coding- Execution Cycle Algorithm: a step-by-step problem-solving process in which a solution is arrived at in a finite amount of time

39Java Programming: From Problem Analysis to Program Design, 5e Problem-Solving Process 1.Analyze the problem and outline the problem and its solution requirements 2.Design an algorithm to solve the problem 3.Implement the algorithm in a programming language, such as Java 4.Verify that the algorithm works 5.Maintain the program by using and improving it and modifying it if the problem domain changes

40Java Programming: From Problem Analysis to Program Design, 5e Problem-Analysis-Coding- Execution Cycle (continued) Figure 1-4

41Java Programming: From Problem Analysis to Program Design, 5e Programming Methodologies Two basic approaches to programming design –Structured design –Object-oriented design

42Java Programming: From Problem Analysis to Program Design, 5e Structured Design 1.A problem is divided into smaller subproblems 2.Each subproblem is solved 3.The solutions of all subproblems are then combined to solve the problem

43Java Programming: From Problem Analysis to Program Design, 5e Object-Oriented Design (OOD) In OOD, a program is a collection of interacting objects An object consists of data and operations Steps in OOD 1.Identify objects 2.Form the basis of the solution 3.Determine how these objects interact

44Java Programming: From Problem Analysis to Program Design, 5e Chapter Summary A computer system is made up of hardware and software components Computers understand machine language; it is easiest for programmers to write in high-level languages A compiler translates high-level language into machine language Java steps to execute a program: edit, compile, load, and execute

45Java Programming: From Problem Analysis to Program Design, 5e Chapter Summary (continued) Algorithm: step-by-step problem-solving process in which a solution is arrived at in a finite amount of time Three steps to problem solving: analyze the problem and design an algorithm, implement the algorithm in a programming language, and maintain the program Two basic approaches to programming design: structured and object-oriented