Introduction to Computers and Programming - Class 1 1 Introduction to Computers and Programming Professor Avi Rosenfeld.

Slides:



Advertisements
Similar presentations
EC-111 Algorithms & Computing Lecture #1 Instructor: Jahan Zeb Department of Computer Engineering (DCE) College of E&ME NUST.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
COSC 120 Computer Programming
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  Programming.
Introduction to Computers and Programming Using Java -- Fall, 2006 Professor Deena Engel V : Section 3 Office hours: Mondays.
Introduction to Computers and Programming Using Java Professor Deena Engel V : Sections 1 and 4 Office hours: Tuesdays & Thursdays.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Chapter 1 – Introduction to Computers and C++ Programming.
Chapter 1 Introduction to C Programming. 1.1 INTRODUCTION This book is about problem solving with the use of computers and the C programming language.
Introduction to Computers and Programming Using Java Professor Deena Engel V : Section 1 Office hours: MW 12:00 - 1:00 in room.
 2000 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers and C++ Programming Outline 1.1Introduction 1.2What Is a Computer?
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.
 2000 Prentice Hall, Inc. All rights reserved. 1 Introduction to Computers and C Programming Outline Introduction What Is a Computer? Computer Organization.
COMPUTER PROGRAMMING. Introduction to C++ History Merges notions from Smalltalk and notions from C The class concept was borrowed from Simular67 Developed.
CS102 Introduction to Computer Programming
 2003 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet, and the Web Outline 1.1 Introduction 1.2 What Is a.
Introduction to Computers and Python. What is a Computer? Computer- a device capable of performing computations and making logical decisions at speeds.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Introduction COMP104: Fundamentals and Methodology.
 2008 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
COMPSCI 174- Introduction to C++ Class hour Section 01: MWF 9:55am – 10:45am. Hyer Hall 210.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
C++ Programming Language Lecture 1 Introduction By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Introduction Lecture 01.
CPS120: Introduction to Computer Science Introduction to Computers.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Introduction to Computers Outline 1.1Introduction.
 2006 Pearson Education, Inc. All rights reserved Introduction to Computers, the Internet and World Wide Web.
© Copyright 1992–2004 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Chapter 1 Introduction to Computers, the Internet and.
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.
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.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
 2001 Prentice Hall, Inc. All rights reserved. Chapter 1 – Introduction to Computers, the Internet and the World Wide Web Outline 1.1Introduction 1.2What.
UniMAP Sem2-10/11 DKT121: Fundamental of Computer Programming1 Introduction to C – Part 1.
CHAPTER 1.1 INTRODUCTION TO COMPUTERS AND C++ Dr. Shady Yehia Elmashad.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Chapter 1 An Overview of Computers and Programming Languages.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Structured programming 1 st stage By Heba.A Raheem Assist Lecturer College of Sciences/Computer Sciences Department.
Chapter 1 Introduction 2nd Semester H
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 – Introduction to Computers, the Internet, and the Web
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1 – Introduction to Computers and C++ Programming
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
Programming COMP104: Fundamentals and Methodology Introduction.
Computer Science I CSC 135.
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Chapter 1 – Introduction to Computers and C++ Programming
King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1 Done By: Asmal Alosaimi Edited By: Fatimah Alakeel.
Introduction to Computer Programming
Introduction to Computer Programming
Chapter 1 – Introduction to Computers and C++ Programming
Introduction to Computers, Internet and the World Wide Web
ICS103 Programming in C 1: Overview of Computers And Programming
Chapter 1 – Introduction to Computers and C++ Programming
Presentation transcript:

Introduction to Computers and Programming - Class 1 1 Introduction to Computers and Programming Professor Avi Rosenfeld

Introduction to Computers and Programming - Class 12 Administrative Details  Course home page is at  Syllabus is accessible from the home page  There will be six homeworks, two midterms and a final  There will be OPTIONAL homeworks given more frequently  Office hours are on Wednesday, 8:30-9:30 A.M., room 419 CIWW, and by appointment

Introduction to Computers and Programming - Class 13 About Me   Yeshiva University Web Page:

Introduction to Computers and Programming - Class 14 Important Information  See the syllabus for more details on homework, midterms and the final  Class participation is important and will help your final grade  To proceed with further computer science courses in the undergraduate division, you *MUST* achieve a grade of C or better-NO EXCEPTIONS CAN BE MADE

Introduction to Computers and Programming - Class 15 Introduction  The purpose of this course is to teach you about computing, but particularly, programming in C (a powerful, widely-used programming language see Linux).  The goal of the course is to introduce you to the world of C.S. and to give you the ability to program independently.

Introduction to Computers and Programming - Class 16 What is a Computer? Device capable of performing computations and enacting logical decisions Computers process data through sets of instructions called computer programs Programs guide the computer through actions as specified by people called computer programmers.

Introduction to Computers and Programming - Class 17 Elements of a Computer  Input devices (files, keyboards, mice, etc.)  Output device (files, screen, printers, etc.)  Memory (video, cache, flash, etc.)  Arithmetic and logic unit (ALU) data process  Central Processing Unit (CPU) control  Secondary Storage (e.g. hard disk, floppy)

Introduction to Computers and Programming - Class 18 Hardware vs. Software  Hardware – Physical Components  Software – Logical Instructions  Firmware – Logical Instructions imprinted on physical Components

Introduction to Computers and Programming - Class 19 How Does a Computer “think”?  Transistors form switches that are in “on” or “off” states.  The Pentium 4 chip has over 42 million transistors.  Each transistor creates one bit.  8 bits create one byte

Introduction to Computers and Programming - Class 110 Why are Bytes Important?  ASCII (American Standard Code for Information Interchange) tables  Unicode addresses the ASCII limitations 

Introduction to Computers and Programming - Class 111 Evolution of the Computer  Early computers used batch processing – one job (program) at a time Very inefficient, sometimes days till output produced Often automation techniques still run in batch.  Terminals used – “dumb” client  Operating systems (OS’s) were first developed to handle switching between jobs Multitasking Multithreading

Introduction to Computers and Programming - Class 112 Personal Computing In 1977, Steve Jobs and Steve Wozniak popularized personal computing with the Apple (proprietary equipment) In 1981, IBM introduced the IBM Personal Computer (PC), using “off-the-shelf” components Today’s top PC’s are as powerful as the million dollar machines of only ten years ago. Aren’t “dumb” terminals.

Introduction to Computers and Programming - Class 113 Programming Languages  Machine language Hardware-dependent, cumbersome manipulation of series of numbers (1’s and 0’s)  Assembly language, e.g. LOAD BALANCE ADD TAX STORE TOTAL  High-level languages (compiled or interpreted) Pascal, Lisp, Ada, Java, Basic, C, C++, etc.

Introduction to Computers and Programming - Class 114 The C Programming Language  C was originally created in 1972 by Dennis Ritchie at Bell Labs=  C is a relatively low-level high-level language; i.e. deals with numbers, characters, and memory addresses

Introduction to Computers and Programming - Class 115 Functions (“verbs” to Deitel)  C programs consist of modules called functions  Functions are groups of instructions that operate on data to produce and often return results  Known in other languages as methods, procedures, subs, among others

Introduction to Computers and Programming - Class 116 Objects (“Nouns” to Deitel)  Object-oriented programming seeks to model the behavior of objects There are data and operations (functions) that work on just that data  Benefits Reusability Quicker development Easier maintenance

Introduction to Computers and Programming - Class 117 Structured Programming  Disciplined approach to writing programs that are clear, correct and easy to maintain and modify  The goal of this course is to make you into structured programming.

Introduction to Computers and Programming - Class 118 Creating Programs in C  Six basic steps Edit Preprocess Compile Link Load Execute

Introduction to Computers and Programming - Class 119 Editor  Used to create the program and store it on disk (secondary storage)  C programs should be saved with a.c extension

Introduction to Computers and Programming - Class 120 Preprocessor  Handles various manipulations before compiling, including Inclusion of additional specified files (e.g. stdio.h, stdafx.h) Text replacement  Results in more efficient, clearer and less unwieldy code

Introduction to Computers and Programming - Class 121 Compiler  Translates the saved program file to machine language (a/k/a object code) and saves it to a file

Introduction to Computers and Programming - Class 122 Linker  Links object code from any additional specified files into appropriate places in your code  Produces a file that is an executable image of the linked object code and stores it on the disk

Introduction to Computers and Programming - Class 123 Loader  Puts the executable image (instructions) from the disk into primary memory

Introduction to Computers and Programming - Class 124 Execute  CPU takes each instruction in primary memory and executes it  CPU may also store new data values as program executes