CIS 260 Computer Programming I in C Prof. Timothy Arndt.

Slides:



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

Lecture 1: Overview of Computers & Programming
Overview of Programming and Problem Solving ROBERT REAVES.
Overview of Computers & Programming Languages Chapter 1.
ICS103 P ROGRAMMING IN C L ECTURE 1: O VERVIEW OF C OMPUTERS & P ROGRAMMING.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
CS 201 Overview of Computers & Programming Debzani Deb.
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.
Chapter 1: An Overview of Computers and Programming Languages
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Introduction to C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
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.
1 The development of modern computer systems Early electronic computers Mainframes Time sharing Microcomputers Networked computing.
 Prof. Dr. M. H. Assal Introduction to Computer AS 26/10/2014.
CS 115 Chapter 1 Overview of Programming and Problem Solving.
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.
Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine.
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.
Introduction to Programming Dr Masitah Ghazali Programming Techniques I SCJ1013.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Ch Review1 Review Chapter Microcomputer Systems Hardware, Software, and the Operating System.
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.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Chapter 1 Overview of Computers and Programming J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National.
CPS120: Introduction to Computer Science Introduction to Computers.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 – Computing Fundamentals. History of Electronic Computers u First computer –ABC (Atanasoff Berry Computer) at Iowa State U. –1930’s –Solved.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Computer Architecture
Chapter 5 Computing Components. 5-2 Chapter Goals List the components and their function in a von Neumann machine Describe the fetch-decode-execute cycle.
Development of Computers. Hardware 1. Original concept: Charles Babbage 1840’s 2. 4 basic components of a computer system: input store mill output (Now:
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
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.
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,
Computer Programming (1) Code & No.: CS 102 CREDIT HOURS: 5 UNIT Lecture 3.0 hours/week Lab: 2.0 hour/on every week a. This course introduces the students.
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.
CHAPTER 1 COMPUTER SCIENCE II. HISTORY OF COMPUTERS (1.1) Eniac- one of the worlds first computers Used more electricity than an entire city block of.
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.
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
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.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
Computer Architecture and Number Systems
BASIC PROGRAMMING C SCP1103 (02)
Computer Science II Chapter 1.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1: An Overview of Computers and Programming Languages
BASIC PROGRAMMING C SCP1103 (02)
Overview of Computers and Programming Chapter 1
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
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.
Overview of Computers & Programming Languages
Computer Science I CSC 135.
Overview of Computer Architecture and Organization
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

CIS 260 Computer Programming I in C Prof. Timothy Arndt

Office location: BU 331 Office hours: 12:30pm – 2:30pm TTH, 7:00pm-8:00pm TH Office Phone:

Course Objectives 4 Develop algorithmic problem solving skills 4 Understand modern software engineering techniques for the design of program solutions 4 Learn the ANSI C programming language

Course Overview  Introduction to computers & programming  Problem solving; variables; expressions, printf 4 Top down design; functions 4 Selection structures; if and switch statements 4 Repetition and loop statements

Course Overview  Modular programming 4 Data types and operators 4 Arrays  Strings 4 Structure and Union Types 4 File Processing 4 Pointers and dynamic memory allocation 4 Stacks, Queues, Binary Trees

Texts 4 Problem Solving and Program Design in C, Hanly and Koffman, Addison-Wesley, 1996.

History of Electronic Computers 4 First electronic computer built in late 1930’s by Atanasoff and Berry 4 First general purpose computer called ENIAC, These computers used vacuum tubes. Later computers used integrated circuits, LSI, VLSI

Categorization of Computers 4 Microcomputers 4 Workstations 4 Mainframes 4 Supercomputers 4 Minicomputers 4 Servers

Computer Hardware 4 Main memory 4 Secondary memory 4 Central processing unit 4 Input devices –Keyboards –Mouses 4 Output devices –Monitors –Printers

Memory 4 The memory of a computer is an ordered sequence of storage locations called memory cells 4 Each memory cell has a unique address 4 The data stored in a cell are called the contents of the cell 4 A cell may contain diverse types of data - numbers, characters, or program data

Bytes and bits 4 A memory cell is a grouping of smaller units called bytes. 4 A byte is the amount of storage required to store a single character 4 A bit (binary digit) is the smallest unit a computer can deal with 4 A bit is either 0 or 1

Storage and Retrieval of Information in Memory 4 To store a value in a memory cell, the computer sets each bit of the cell to 0 or 1, destroying the previous values 4 To retrieve a value from a memory cell, the computer copies the contents of the cell to another area

Main memory 4 Random access memory (RAM) is volatile (data is lost when the computer is turned off). 4 Read only memory (ROM) is non-volatile and is often used to store the startup instructions of the computer 4 Cache memory is fast RAM

Secondary Storage Devices 4 Disk drives are read-write random access devices with files organized in directories and subdirectories –Hard disks –Floppy disks 4 CD-ROM drives are (usually) read-only random access devices 4 Tape drives are read-write sequential access devices

Central Processing Unit 4 Coordinates all computer operations 4 Performs arithmetic and logical operations on data 4 Stored programs are executed in a cycle of instruction fetch, instruction decode, data fetch, instruction execute, result store sequences

Input/Output Devices 4 I/O devices allow us to enter data for a computation and observe the results of the computation 4 Keyboard 4 Mouse 4 Monitor 4 Printer

Programming Languages 4 Machine languages are the native languages of the computer and are coded as strings of 0’s and 1’s 4 Assembly languages substitute symbolic names for strings of 0’s and 1’s 4 High-Level Language instructions correspond to sequences of assembly language instructions and are easier to read/write

Relationship Between High- Level and Machine Languages 4 In order to be executed by a computer, a program written in a high-level language (source program) must be translated to machine language 4 The translator is called a compiler 4 The resulting program is called an object program

Operating System 4 The software which controls the operation of a computer is called the operating system 4 Operating systems may have graphical interfaces (GUIs) command line interfaces (CLIs) or both

Software Development Method 4 Specify the problem requirements 4 Analyze the problem 4 Design the algorithm to solve the problem 4 Implement the algorithm 4 Test and verify the completed algorithm 4 Maintain and update the program

Case Study: Miles to Kilometers 4 Analyze the problem 4 Problem input: distance in miles 4 Problem output: distance in kilometers 4 Additional constraints on the solution?

Design 4 Algorithm –Get the distance in miles –Convert the distance to kilometers –Display the distance in kilometers 4 Refine the algorithm –The distance in kilometers is times the distance in miles