Chapter 1 09/04/13. Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget.

Slides:



Advertisements
Similar presentations
Etter/Ingber Engineering Problem Solving with C Fundamental Concepts Chapter 1 Engineering Problem Solving.
Advertisements

4/23/2015Engineering Problem Solving with C++ second edition, J. ingber 1 Engineering Problem Solving with C++, Etter/Ingber Chapter 1.
Computer Components.
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
16/13/2015 3:30 AM6/13/2015 3:30 AM6/13/2015 3:30 AMIntroduction to Software Development What is a computer? A computer system contains: Central Processing.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computing Components 01/26/11. Announcements & Reminders Programs 1 due Friday, 9/2/11 What is my late policy? Proxy Codes for Labs  You should be able.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
Computer Hardware.
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.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 Engineering Problem Solving 1. Hardware and Software 2 A computer is a machine designed to perform operations specified with a set of instructions.
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.
CISC105 General Computer Science Class 1 – 6/5/2006.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Big Java by Cay Horstmann Copyright © 2008 by John Wiley & Sons. All rights reserved. Chapter One: Introduction.
 Why?  Because it can be programmed to do more than one specific task. ◦ Accountants ~ tax forms etc. ◦ Machinists ~ control drilling, lathes etc. ◦
CHAPTER 1 GC 101 Introduction to computers and programs.
Intro to Computers Computer Apps 1.
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.
EG280 Computer Science for Engineers Fundamental Concepts Chapter 1.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
CHAPTER 1 INTRODUCTION 1 st Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Computing Systems & Programming ECE Fundamental Concepts Chapter 1 Engineering Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
The Computer System CS 103: Computers and Application Software.
Problem Solving Techniques Using Pascal Allen C.-H. Wu Department of Computer Science Tsing Hua University Hsinchu, Taiwan 30043, ROC
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Introduction To Computers
Introduction to Computer Programming using Fortran 77.
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.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Chapter 3 Getting Started. Copyright © 2005 Pearson Addison-Wesley. All rights reserved. Objectives To give an overview of the structure of a contemporary.
Chapter 1: Introduction to Computers and Programming
Chapter 1 Introduction 2nd Semester H
Topic 2: Hardware and Software
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: An Overview of Computers and Programming Languages
Engineering Problem Solving With C An Object Based Approach
Chapter 1: An Overview of Computers and Programming Languages
Lecture 1: Introduction to JAVA
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
08/28/06 parts of the computer.
Overview of Computers & Programming Languages
Chapter 1: Introduction to Computers and Programming
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Understand the interaction between computer hardware and software
Overview of Computer system
08/28/06 parts of the computer.
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Chapter 1 09/04/13

Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget it. Change it to something you can remember

Computer Architecture and Language  Know Basic Computer Architecture  Know Basic Software and Languages  Identify Types of Programming Errors 3

COMPUTER ARCHITECTURE 4

CPU  Central Processing Unit 5

CPU  "Brain" of the Computer Executes program instructions Controls Other Devices Carries out arithmetic operations Fetches data from memory and stores it back 6

Primary Memory  RAM  Stores program while it is executed  Also stores data the program needs  Temporary 7

Secondary Memory  Long term storage  Devices Hard Drive Flash Drive Tapes 8

Input and Output Devices  Input Devices Let user enter data Mouse, Keyboard, Camera  Output Devices Let user access data in system Display Screen, Printer, Speaker 9

Anatomy of a Computer 10

SOFTWARE 11

Software  Computer software refers to programs that reside and execute electronically on the hardware. Compilers Translate source code Operating systems Provide the HCI (Human Computer Interface) Application programs Provide problem solutions 12

Languages  Machine Code Only code computer understands Numeric(binary) Code Extremely primitive  High Level Languages More like English Instructions more powerful C++, Java, VB, Python Must be translated with a Compiler 13

Languages The compiler translates C++ programs into machine code. The linker combines machine code with library code into an executable program. C++ for Everyone by Cay Horstmann Copyright © 2012 by John Wiley & Sons. All rights reserved

Engineering Problem Solving with C++ second edition, J. ingber 15 Executing a C++ Program  Source File printable/Readable Program file Created with vi or other editor  Object File nonprintable machine readable file Created by compiler  Executable Program nonprintable executable code Linker links libraries with object code to create it.

Engineering Problem Solving with C++ second edition, J. ingber 16 Errors  Syntax errors Reported by the compiler Error in language rules, such as leaving out a ";"  Execution/Run-time errors Reported by the operating system Cause program to stop abnormally e.g. Zero divide  Logic errors Not reported Just cause bad program results e.g. Program converts 24 inches to 7 feet.

17 Questions  What is the purpose of the CPU? How does it know what to do?  Give an example of an input device.  Where is a program stored while it is executing?  What linux command is used to translate a C++ program into machine code?  A program to convert fahrenheit to celsius asks the user for a fahrenheit temperature then stops abnormally. What kind of error is this?  Another temperature conversion program gets a fahrenheit temperature of 32 then outputs 50 degrees celsius. What kind of error is this one?

18 Quiz Next Wednesday  Linux and Vim  Chapter 1