CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”

Slides:



Advertisements
Similar presentations
Lecture 1: Overview of Computers & Programming
Advertisements

Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
CMPT 120 Introduction to Computer Science and Programming I Chris Schmidt.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
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.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
Course: Introduction to Computers
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Introduction to Computer Administration Introduction.
CS190/295 Programming in Python for Life Sciences: Lecture 1 Instructor: Xiaohui Xie University of California, Irvine.
CS102 Introduction to Computer Programming
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
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.
Python Programming, 2/e1 Python Programming: An Introduction to Computer Science Chapter 1 Computers and Programs.
Startup – Chapter 1.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Chapter 3 Computer Hard ware
Topics Introduction Hardware and Software How Computers Store Data
1 TOPIC 1 INTRODUCTION TO COMPUTER SCIENCE AND PROGRAMMING Topic 1 Introduction to Computer Science and Programming Notes adapted from Introduction to.
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.
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510.
Python Programming, 2/e1 Python Programming: An Introduction to Computer Science Chapter 1 Computers and Programs.
Computers Parts/Types. Topics Definition Types of Computers Parts of Computer System Impact on Society.
Introduction to Programming Using C Introduction to Computer Programming.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
Mrs. Ulshafer August, 2013 Java Programming 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.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
ELEMENTS OF A COMPUTER SYSTEM HARDWARE SOFTWARE PEOPLEWARE DATA.
Parts of the Computer System
Computer Organization. The digital computer is a digital system that performs various computational tasks Digital computer use binary number system which.
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Looking Inside the Computer System
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
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)
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Ch 1 - Introduction to Computers and Programming Hardware Terminology Main Memory Auxiliary Memory Drives Writing Algorithms Using Pseudocode Programming.
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
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.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
CHAPTER 1 OVERVIEW OF COMPUTER AND PROGRAMMING 1.1 Electronic Computer Then and Now 1.2 Computer Hardware 1.3 Computer Software 1.4 The Software Development.
Java Programming: From the Ground Up
Topics Introduction Hardware and Software How Computers Store Data
Chapter 1: An Overview of Computers and Programming Languages
Lecture 1: Introduction to JAVA
Computer System and Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
McGraw-Hill Technology Education
CS190/295 Programming in Python for Life Sciences: Lecture 1
The Study of Computer Science
Topics Introduction Hardware and Software How Computers Store Data
Logical Computer System
15-110: Principles of Computing
The Study of Computer Science Chapter 0
Presentation transcript:

CS 127 Introduction to Computer Science

What is a computer?  “A machine that stores and manipulates information under the control of a changeable program” [1]  “A computer is a general purpose device that can be programmed to carry out a set of arithmetic or logical operations” [2]  Two key concepts:  It is a machine  It can be controlled via instructions [1] Python Programming : An Introduction to Computer Science - Zelle [2] Wikipedia

What is a computer program?  “Detailed step by step instructions telling a computer exactly what to do” [1]  “It is a sequence of instructions, written to perform a specified task with a computer” [2]  Computers simply execute programs or instructions  Without being told what to do, computers would not be useful  Software (programs) rules or controls the hardware (physical machine) [1] Python Programming : An Introduction to Computer Science - Zelle [2] Wikipedia

Programming  The process of creating software  It is a challenging  You have to see the big picture  You have to pay attention to every detail  It is important to learn programming because it is such an integral part of computer science  Allows development of problem solving skills  Allows complex systems to be analyzed and reduced to interactions and understandable subsystems 4

What is computer science?  “The scientific and practical approach to computation and its applications” [1]  Computers are simply a tool that are used in computer science  Three important concepts  Design  Analysis  Experimentation 5 [1] Wikipedia

Design  Formulating a solution to a problem  Often involves a step by step process for achieving a result  An algorithm  Look at problems in a logical way and design a solution  This is a critical process in computer science  Most time should be spent here to allow for efficiency in the development process 6

Analysis  The process of examining algorithms and problems mathematically  Every algorithm to solve a problem cannot always be implemented  Lack of computational resources  Not feasible time-wise  Not enough memory  Analysis of algorithms is important in computer science  The bottom line is whether a working, reliable system can be built 7

Other areas of computer science  Networking  Human-Computer Interaction  Artificial Intelligence  Computational Science (using computers to model scientific data)  Databases  Software Engineering  Web and Multimedia Design  MIS (Management Information Systems)  Security 8

Computer Hardware 9

 Central Processing Unit (CPU) - Brain of the computer  Memory - Stores programs and data  Main Memory (RAM - Random Access Memory)  RAM - Fast and Volatile  Cache  Secondary Memory or Storage  Hard Disk Drive  Optical Drive - CD, DVD 10

Computer Hardware  Peripheral Devices  Keyboard - Input  Mouse - Input  Monitor - Output  Printer - Output 11

Computer Hardware 12

Programming Languages  Computers need to be told in explicit terms what actions they must perform  Languages that computers can understand need to be precise and exact  Every structure in a programming language has a precise form (syntax) and a precise meaning (semantics)  Programs are often referred to as computer code and the process of writing an algorithm in a programming language is called coding 13

Programming  Programming languages are considered “higher level” languages  Computer hardware can only understand “low-level” languages referred to as “machine language”  Computers understand binary (1s and 0s)  A higher level language is converted into a lower level language by:  Compilation  Interpretation 14

Compiler vs Interpreter 15 CompilerInterpreter Takes high level source code and converts it into low level machine code Analyzes and executes source code instruction by instruction Once program is compiled, it can be run multiple times without needing the compiler and source code Interpreter and source needed every time the program is run Compiled programs are generally faster Interpreted programs are more flexible as you can develop and run programs interactively

Portability  Machine language is specific to a particular CPU  Each kind of computer has its own machine language  Programs written in a high level language can be run on different computers as long as a compiler and interpreter exists for that computer 16

Python  It is an interpreted language  Simple yet powerful and robust  Good initial language to learn programming  Companies that use Python  Google  Yahoo  Disney  IBM  NASA 17

Running Python programs  IDLE GUI  Command line Interpreter  Good resource 