Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.

Slides:



Advertisements
Similar presentations
Designing a Program & the Java Programming Language
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.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Starting Out with C++: Early Objects 5/e © 2006 Pearson Education. All Rights Reserved Starting Out with C++: Early Objects 5 th Edition Chapter 1 Introduction.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Activity 1 - WBs 5 mins Go online and spend a moment trying to find out the difference between: HIGH LEVEL programming languages and LOW LEVEL programming.
Microsoft Visual Basic 2005 CHAPTER 1 Introduction to Visual Basic 2005 Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
CS102 Introduction to Computer Programming
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design Second Edition by Tony Gaddis.
Introduction to Programming. Our Book in CS Why Program? Lets watch a video
Topics Introduction Hardware and Software How Computers Store Data
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 1 Introduction to Computers and Programming Starting Out with.
General Computer Science for Engineers CISC 106 Lecture 02 Dr. John Cavazos Computer and Information Sciences 09/03/2010.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1 Introduction to Computing and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 1 Introduction to Computers and Programming.
Introduction to Computer Systems and the Java Programming Language.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 1 Introduction.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Java: From Control Structures through Objects Third Edition.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Copyright © 2016 Pearson Education, Inc., Hoboken NJ CHAPTER 1 Introduction to Computers and Programming.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming Dr. Halla Abdel Hameed.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Copyright © 2015, 2012, 2009 Pearson Education, Inc., Publishing as Addison-Wesley All rights reserved. Chapter 1: Introduction to Computers and Programming.
Chapter 1: Introduction to Computers and Programming
Software Development Environment
Java Programming: From the Ground Up
BASIC PROGRAMMING C SCP1103 (02)
Topics Introduction Hardware and Software How Computers Store Data
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: Introduction to Computers and Programming
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 Introduction to Computers and Programming
Chapter 1: Introduction to Computers and Programming
People use computers at…
TRANSLATORS AND IDEs Key Revision Points.
Chapter 1: Introduction to Computers and Programming
Topics Introduction Hardware and Software How Computers Store Data
Topics Introduction Hardware and Software How Computers Store Data
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 1: Introduction to Computers and Programming
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis Chapter 1: Introduction to Computers and Programming

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley 1-2 Chapter Topics 1.1 Introduction 1.2 Hardware 1.3 How Computers Store Data 1.4 How a Program Works 1.5 Types of Software

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Introduction Program » A set of instructions that a computer follows to perform a task –We use programs every time we use a computer –Programs are sometimes called software Programmer » A person with the training and skills necessary to design, create, and test computer programs –Programmers are sometimes called software developers

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Hardware Hardware » The physical devices that make up a computer –CPU Most important part of the computer; actually runs the programs –Main memory Where programs are stored while running; also called RAM –Secondary storage devices Memory that holds data for a long period of time, even when the computer is shut down such as a memory stick or DVD –Input devices Keyboard, mouse, scanner –Output devices Printer, video display

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How Computers Store Data All data that is stored in a computer is converted to sequences of 0s and 1s, called bits. –There are 8 bits in a byte. –One byte is only large enough to store a letter of the alphabet or a small number Figure 1.7 Bit patterns for the number 77 and the letter A

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How Computers Store Data Storing numbers –If a bit is turned off, it represents a binary 0. –If a bit is turned on, it represents a binary 1. –Each digit in a binary number has a value assigned to it. –Each value that is turned on (1) is then added up to find the number that it represents. Figure 1.9 The values of binary digits

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How Computers Store Data Storing characters –When a character is stored, it must first be converted to a numeric code. –ASCII is the common coding scheme. It has a 128 set of common codes Example: a capital A is 65, or binary

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How a Program Works A computer’s CPU can only understand instructions that are written in machine language. The process is: 1.Fetch – reads the next instruction from memory into the CPU. 2.Decode – the CPU decodes the instruction to determine what should happen first. 3.Execute – perform the operation. It’s very difficult to write a program in machine language!

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How a Program Works Machine Language to Assembly Language Instead of binary numbers, assembly language uses short words that are known as mnemonics. –mul means to multiply –add was used for addition An assembler was then used to translate it into machine language.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How a Program Works Assembly Language to High-Level Languages Allowed programmers to create powerful and complex programs without knowing how the CPU works. Common High-Level Languages –C and C++ –C# –Java –Visual Basic –Python –Ruby

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How a Program Works A compiler is a program that translates a high- level language program into a separate machine language program, or an executable. A interpreter is a program that both translates and executes the instructions. –This process takes longer than a compiler and is no longer a popular method.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How a Program Works The statements that a programmer writes are called source code. The code is then compiled. All syntax errors must be corrected in order for the executable to be created. Syntax errors are mistakes with the rules of the language.

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley How a Program Works Integrated Development Environments –IDEs are specialized software packages that have a text editor, a compiler, and tools for testing programs and locating errors. Microsoft Visual Studio Eclipse Dev C++ NetBeans jGRASP

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Types of Software Programs generally fit into one of two categories –System software The set of programs that control or enhance the operation of a computer such as an Operating System, Utility Programs, or Software Development Tools. –Application software Programs that make a computer useful for every day tasks such as Microsoft Word, programs, and Web browsers.