CISC105 General Computer Science Class 1 – 6/5/2006.

Slides:



Advertisements
Similar presentations
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Advertisements

Lecture 1: Overview of Computers & Programming
ICS103 P ROGRAMMING IN C L ECTURE 1: O VERVIEW OF C OMPUTERS & P ROGRAMMING.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
CS 201 Overview of Computers & Programming Debzani Deb.
Hardware Basics: Inside the Box 2  2001 Prentice Hall2.2 Chapter Outline “There is no invention – only discovery.” Thomas J. Watson, Sr. What Computers.
Data Communications and Computer Networks
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ Programming:
Topic 1: Introduction to Computers and 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.
CIS 260 Computer Programming I in C Prof. Timothy Arndt.
COMP Computer Basics Yi Hong May 13, 2015.
Chapter 1 Overview of Computers and Programming. 1-1 Outline 1.1 ELECTRONIC COMPUTERS THEN AND NOW 1.2 COMPUTERS HARDWARE 1.3 COMPUTERS SOFTWARE 1.4 THE.
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.
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.
Topics Introduction Hardware and Software How Computers Store Data
INTRODUCTION TO COMPUTING
Liang, Introduction to Java Programming, Ninth Edition, (c) 2013 Pearson Education, Inc. All rights reserved. 1 Chapter 1 Introduction to Computer Science.
The Computer Systems By : Prabir Nandi Computer Instructor KV Lumding.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
An Overview of Using Computers
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Computers Parts/Types. Topics Definition Types of Computers Parts of Computer System Impact on Society.
Chapter 1 Overview of Computers and Programming J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National.
Computer Parts. Two Basic Parts Hardware & Software.
Course ILT Basics of information technology Unit objectives Define “information technology” (IT), distinguish between hardware and software, and identify.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
COMPUTER ARCHITECTURE. Recommended Text 1Computer Organization and Architecture by William Stallings 2Structured Computer Organisation Andrew S. Tanenbaum.
Computer Architecture
Computer Basic Vocabulary
Parts of the Computer System
1 THE COMPUTER. 2 Input Processing Output Storage 4 basic functions.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
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 Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
DAILY QUESTION April 29, What is the difference between ROM and RAM? Hint: Use your book!
1. COMPUTERS AND PROGRAMS Rocky K. C. Chang September 6, 2015 (Adapted from John Zelle’s slides)
Chapter 1 An Overview of Computers and Programming Languages.
Copyright © 2014, 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Eighth Edition by Tony Gaddis,
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
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: An Overview of Computers and Programming Languages
Overview of Computers and Programming Chapter 1
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Java programming lecture one
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
UNIV 103 CS Majors Seminar Dr. Blaise W. Liffick Fall 2017.
Computer Science I CSC 135.
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Topics Introduction Hardware and Software How Computers Store Data
Introduction to computers
Computer Electronic device Accepts data - input
Chap 2. Computer Fundamentals
Data Communications and Computer Networks
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

CISC105 General Computer Science Class 1 – 6/5/2006

Important Notes! The lab session has been moved from 040 Smith Hall to 009 Willard Hall. It will meet at the same day and time.

Computer Hardware

Main Memory Memory Cells Address Memory content –Data –Program Instruction RAM vs. ROM –Random Access Memory = volatile –Read Only Memory = non-volatile

Bits and Bytes Information stored in memory as bits 8 bits = 1 Byte 1 b vs. 1 B 1 KB = 1024 B 1 GB = 1024 MB = 1,048,576 MB = 1,073,741,824 B

Secondary Storage Secondary Storage is used for long term storage of programs and information Information is stored in Files, directories and subdirectories

Central Processing Unit (CPU) “Brain” of the computer with 2 primary functions –Coordinate all computer operations –Performing arithmetic and logical operations on data CPU follows instructions contained in a computer program –Fetch Instruction -> Interpret Instruction -> retrieve data (if necessary) -> carry out instruction –Uses Registers (high speed memory) to speed up retrieval

Input Devices Input Devices - Any device used to enter information into a computer –Keyboard, Mouse, Digitizer etc.

Output Devices Output Devices used to observe the results of the data manipulation Monitor, printer, etc.

Computer Network Local Area Network (LAN) – computers and peripherals connected together in order to share resources. Usually contained in a building. –Network Printers, Scanners, secondary storage (file servers) etc.

Computer Network (WAN) Wide Area Network (WAN) – a network that attaches a large number of computers over a large geographic area. The Internet is the most well know WAN (WWW and GUI via Browser)

How to connect to Networks Modem - Use a telephone line (modulator / demodulator) - transmit up to 50,000 bps Digital Subscriber Line (DSL) – uses telephone line but can have simultaneous voice communication. (~1.5 Mbps) Cable Internet access – uses the coax cable that is used to deliver TV to your house

Computer Software Operating System Application Software Computer Languages Software Development Method

Operating System Operating System (OS) - Collection of programs that control the interaction of the user and computer hardware Booting a computer – loading the OS into memory

OS Responsibilities Communicating with the computer users Managing memory allocation, processor time and other resources Collecting input from Input devices Conveying output to screen, printer, etc Fetch data from secondary storage Write data to secondary storage

Application Software Application – software used for a specific task – word processing, , accounting, etc Applications are made available by installing them. Must be compatible with the Hardware and operating system you are using.

Computer Languages Machine language – collection of binary numbers –Only understood by a specific CPU –Not very readable –Not standardized Assembly Language – mnemonic codes that correspond to machine language –Suffers from same problems as Machine Language

Computer Languages High-Level language –CPU independent –Combine algebraic expressions A compiler will translate a high-level source file into machine code Syntax is very important! Some developers use an IDE to

Entering, Translating, and Running a High-Level Language Program

Flow of information during program execution

Software Development Method PAD IT Man! –Problem Definition –Analyze the Problem –Design Algorithm –Implement the Algorithm –Test and verify the program –Maintain and Update the program

Software Development Method (example) Problem definition: Your job requires you to convert miles to kilometers. Analysis: –Program input: distance in miles –Program output: distance in kilometers –Relevant Formula: 1 mile = kilometers

Software Development Method (example) Design 1.Get the distance in miles 2.Convert the distance to kilometers 1.Distance in kilometers is times the distance in miles 3.Display the distance in kilometers Check the algorithm = 10 miles times = 16.09km

Software Development Method (example) Implement and test

Chapter 2 C Language Elements Variable Declaration and Data Types Executable Statements General Form of a C program Formatting Numbers in Output Interactive Mode, Batch Mode, and Data Files Common Programming Errors

Variable Declaration and Data Types Variable – a name associated with a memory cell whose value can change Variable Declaration – statements that communicate to the compiler the names of the variables in the program and the kind of information it stores. Data Types – a set of values and operations that can be performed on those values

Executable Statements Assignment Statements – an instruction that stores a value or a computational result in a variable

Executable Statements

I/O Statements - printf printf is an output statement supplied by the stdio.h library printf is executed by running a function call –printf(“That equals %f kilometers.\n”, kms); Function arguments Format String (placeholders – multiple placeholders) Print list \n and the cursor