CS150 Introduction to Computer Science 1. What is CS150? Who Are We? CS150 is a programming course You will learn

Similar documents
CS 150 Introduction to Computer Science 1. August 31, 2009

CS 150 Introduction to Computer Science 1

Machine Architecture and Number Systems CMSC104. Von Neumann Machine. Major Computer Components. Schematic Diagram of a Computer. First Computer?

Chapter 1: Introduction to Computers and Programming

(Refer Slide Time 00:01:09)

Machine Architecture and Number Systems

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components

Lab Determining Data Storage Capacity

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Chapter 5 Computing Components

C H A P T E R 1. Introduction to Computers and Programming

CS 31: Intro to Systems Binary Representation. Kevin Webb Swarthmore College September 6, 2018

Fundamentals of Programming (Python) Basic Concepts. Ali Taheri Sharif University of Technology Spring 2018

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming

CHAPTER 1 Introduction to Computers and Java

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program?

Computer Organization

An Introduction to Computers and Java CSC 121 Spring 2015 Howard Rosenthal

A Review of Chapter 5 and. CSc 2010 Spring 2012 Instructor: Qian Hu

Chapter 1 Introduction to Computers and Programming

ZONAL EDUCATION OFFICE - JAFFNA

Computer Programming

Programming 1. Lecture 1 COP 3014 Fall August 28, 2017

Ms. Minerva A. Lagarde

Chapter 1: Introduction to Computers and Java

8/23/2014. Chapter Topics. Introduction. Java History. Why Program? Java Applications and Applets. Chapter 1: Introduction to Computers and Java

Computer Basics 1/6/16. Computer Organization. Computer systems consist of hardware and software.

Topics. Hardware and Software. Introduction. Main Memory. The CPU 9/21/2014. Introduction to Computers and Programming

Computer Architecture 2/26/01 Lecture #

Components of a Computer System

Explain the functions of the main components of a basic computer system (Part 2) S. Neebar

CS 140 Introduction to Computing & Computer Technology. Computing Components

Introduction. Arizona State University 1

Programming 1 - Honors

Parts are adapted from Windows 98 by Mark Twain Media, Inc. A Computer System has Hardware and Software

Computer Organization and Assembly Language (CS-506)

Quiz on Ch.4 is at the end of Ch.4 slides

Basic Computer Hardware Notes in PDF

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

COMPUTER BASICS Processing/Storage

Computer Fundamentals

8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics

An Introduc+on to Computers and Java CSC 121 Spring 2017 Howard Rosenthal

Chapter 1 Computer and Programming. By Zerihun Alemayehu

Problem Solving and Program Design - Chapter 1. Cory L. Strope

Fundamentals of Programming. Lecture 1: Introduction to C Programming

Three-box Model: These three boxes need interconnecting (usually done by wiring known as a bus. 1. Processor CPU e.g. Pentium 4 2.

Components of a personal computer

Show how to connect three Full Adders to implement a 3-bit ripple-carry adder

Computer Fundamentals

Computer Architecture and Assembly Language. Spring

Memory Overview. Overview - Memory Types 2/17/16. Curtis Nelson Walla Walla University

KULLEĠĠ SAN BENEDITTU Boys Secondary, Kirkop

Part I: Hardware and communication

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Basic Computer Programming for ISNE. Santi Phithakkitnukoon ผศ.ดร.ส นต พ ท กษ ก จน ก ร

Downloaded From :

Advanced Operating Systems (CS 202)

Information Science 1

CS 31: Intro to Systems Binary Representation. Kevin Webb Swarthmore College January 27, 2015

CSC 121 Computers and Scientific Thinking

AT76.09 Digital Image Processing in Remote Sensing using C Language

Exercise 6 - Addressing a Message

Chapter 1: Why Program? Computers and Programming. Why Program?

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

About the Presentations

Principles of Data Management. Lecture #2 (Storing Data: Disks and Files)

CS510 Operating System Foundations. Jonathan Walpole

Knowledge Organiser. Computing. Year 10 Term 1 Hardware

Computer Architecture. Fall Dongkun Shin, SKKU

This installation guide is intended for customers who are installing NMIS for the first time. Included are the recommended hardware specifications

An Overview of the Computer System. Kafui A. Prebbie 24

Fundamentals of Programming Session 1

CSC 101: Lab Manual#9 Machine Language and the CPU (largely based on the work of Prof. William Turkett) Lab due date: 5:00pm, day after lab session

Today: Secondary Storage! Typical Disk Parameters!

Week 1 Introduction to Programming

Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

INTRODUCTION TO COMPUTERS

UNIT 1.1 SYSTEMS ARCHITECTURE MCQS

5 Computer Organization

UNIT-V MEMORY ORGANIZATION

Chapter 5: Computer Systems Organization

5 Computer Organization

2011 Francisco Delgadillo

Lecture 1: What is a computer?

The Fetch-Execute Cycle

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

CS 101, Mock Computer Architecture

CMPUT101 Introduction to Computing - Summer 2002

Overview IN this chapter we will study. William Stallings Computer Organization and Architecture 6th Edition

Review: Performance Latency vs. Throughput. Time (seconds/program) is performance measure Instructions Clock cycles Seconds.

BITG 1113: Introduction To Computers And Programming Language LECTURE 1 LECTURE 1 1

(0) introduction to the course. how to learn a programming language. (0) course structure

Associate Professor Dr. Raed Ibraheem Hamed

Intentionally Blank 0

Today s lecture is all about the System Unit, the Motherboard, and the Central Processing Unit, Oh My!

Transcription:

CS 150 Introduction to Computer Science 1 Professor: Shereen Khoja shereen@pacificu.edu 1 What is CS150? CS150 is a programming course You will learn o The mechanics of writing programs in C++ o How to solve complex problems using C++ o How to break a large problem into smaller, more manageable problems o How to formulate algorithms to solve problems You do not need any previous programming or computer skills to take this course 2 Who Are We? Who am I? Who are you? 3

How to Succeed in CS150 Don t miss class. It is very difficult to pick up any material that you miss Try and read ahead even if you don t understand much Start programming assignments early Do as much on your own as possible. The more help you get the less sure of yourself you will become 4 How to Succeed in CS150 Read the assignments carefully and follow all directions See me as soon as possible about any in class information that you are unclear on Take notes! A lot of the examples we will go through will be written on the board, and will not be in the notes 5 Course Schedule The course schedule I have given you is tentative. I expect to follow this schedule, but I may have to adjust it from time to time The online schedule will be accurate and up to date. That is the schedule that you should refer to when studying or revising 6

Introduction to Computers and Programming Chapter 1 7 Topics What are computers? A little bit of history Computer basics Programming languages 8 What is a Computer? What is your definition? The most important thing to remember is that a computer is a machine that follows directions. In the case of programming, the machine is following your directions exactly You need to be very specific about what you want the computer to do 9

Computer Systems Hardware Software 10 Hardware Physical components of a computer o Central Processing Unit (CPU) o Main Memory (RAM) o Secondary Storage o Input Devices o Output Devices Let s look at each of these in detail 11 CPU A CPU o Fetches instructions o Follows instructions o Produces results A CPU consists of o Control unit: coordinates computer operations o ALU: performs arithmetic operations 12

Memory Address 0 1 2 3 4 5 6 7 8 9 10 Contents -27.2 354 0.05-26 H 400 RTV 001 ADD 003 STO 005 X 1005 -Memory is a sequence of storage cells -Memory cells are 1 byte in size -Bytes are groups of bits (8 usually) -Bits are 0 or 1 -Each memory cell has unique address -Contents can be data or instruction -Everything stored as strings of 0s & 1s -RAM is volatile 13 Secondary Storage Not volatile Disk drives o Hard disks o Floppy disks o Zip disks Optical drives o CDs o DVDs 14 Input/Output Devices Input: sends information to the computer from outside Output: sends information from the computer to outside Examples? 15

Software Operating System Application Software 16 Question Can computers think? Computers need a list of instructions to perform operations These instructions are programs 17 Program Program o Set of instructions directing a computer to perform a task Programming language o A language used to write programs o Examples? 18

Programming Language Machine language o Zeroes and ones o Machine dependent High level language o Instructions look like everyday English o Each instruction can perform many machine language instructions 19 C++ Based on the C programming language C++ is a high level programming language One of today s most popular programming languages Used extensively in industry 20 Summary Today we have looked at: o The history of computers o The hardware of computers o The software of computers o Concept of programming Next time we will: o Learn how to write our first C++ program Completed sections 1.1-1.3 from the book o Pages1-12 21