Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.

Slides:



Advertisements
Similar presentations
Chapter 1 An Overview of Computers and Programming Languages.
Advertisements

ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
Overview of Computers & Programming Languages Chapter 1.
CSCE 145: Algorithmic Design I Chapter 1 Intro to Computers and Java Muhammad Nazmus Sakib.
ICS103 P ROGRAMMING IN C L ECTURE 1: O VERVIEW OF C OMPUTERS & P ROGRAMMING.
CS 201 Overview of Computers & Programming Debzani Deb.
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.
Chapter 1: An Overview of Computers and Programming Languages
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 C++ Programming CS 117 Section 2 and KNET Sections Spring 2001 MWF 1:40-2:30.
Chapter 1: An Overview of Computers and Programming Languages
Topic 1: Introduction to Computers and Programming
CS 115 Chapter 1 Overview of Programming and Problem Solving.
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.
Computer Programming-1 CSC 111 Chapter 1 : Introduction.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
CCSA 221 Programming in C CHAPTER 2 SOME FUNDAMENTALS 1 ALHANOUF ALAMR.
CS 161 INTRO TO PROGRAMMING I Dr. Blaise W. Liffick Fall
Programming Languages: Telling the Computers What to Do Chapter 16.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction COMP104: Fundamentals and Methodology.
1 Lecture 2 : Computer System and Programming. Computer? a programmable machine that  Receives input  Stores and manipulates data  Provides output.
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.
What is a Computer? An, electrical machine, that can be programmed to accept data (input), process it into useful information (output) and store it away.
Chapter 1: An Overview of Computers and Programming Languages
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.
Chapter 1 Introduction Chapter 1 Introduction 1 st Semester 2015 CSC 1101 Computer Programming-1.
Cs413_design04.ppt Design and Software Development Design : to create a functional interface that has high usability Development : an organized approach.
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.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Chapter 1 : Overview of Computer and Programming By Suraya Alias
CS-303 Introduction to Programming
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Chapter 4 Software. Introduction Program: is a set of sequence instructions that tell the computer what to do. Software: is a collection of programs,
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
CSCI 161 Lecture 3 Martin van Bommel. Operating System Program that acts as interface to other software and the underlying hardware Operating System Utilities.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
Copyright © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Programming 2 Intro to Java Machine code Assembly languages Fortran Basic Pascal Scheme CC++ Java LISP Smalltalk Smalltalk-80.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Software Engineering Algorithms, Compilers, & Lifecycle.
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.
Chapter 1 Introduction 2nd Semester H
DDC 2223 SYSTEM SOFTWARE DDC2223 SYSTEM SOFTWARE.
CSCI-235 Micro-Computer Applications
Chapter 1: An Overview of Computers and Programming Languages
Lecture 1: Introduction to JAVA
Overview of Computers and Programming Chapter 1
Computer System and Programming
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Chapter 1: An Overview of Computers and Programming Languages
Programming COMP104: Fundamentals and Methodology Introduction.
Overview of Computers & Programming Languages
Computer Science I CSC 135.
Computers: Hardware and Software
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(1.1)
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 Programming
ICS103 Programming in C 1: Overview of Computers And Programming
Programming Logic and Design Eighth Edition
Presentation transcript:

Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315

Copyright © 2002 W. A. Tucker2 Programming Programming is Problem Solving People use programs to “solve problems” Designing a program is like “solving a problem” Make a program run properly is also “solving a problem”

Copyright © 2002 W. A. Tucker3 My Favorite Phrase The computer made a mistake! Computers don’t make mistakes unless they are BROKEN People make mistakes People write programs People write programs that make mistakes

Copyright © 2002 W. A. Tucker4 Computer Hardware The main parts of a computer are –Memory Main memory –RAM –Volatile memory Secondary memory (secondary storage) –Files –Non-Volatile –Input / Output –Central Processing Unit

Copyright © 2002 W. A. Tucker5 Processing Data Processing of data occurs within the CPU –Data must be moved from storage to the CPU for processing to occur –The CPU must be told where the data is located –All data stored in main memory is referenced by a memory address –Example: A = B + 12 Get the contents of memory location 00BE34 (B) Add 12 to the value Store the value into memory location 00BE38 (A)

Copyright © 2002 W. A. Tucker6 Computer Software Operating Systems manage and control the resources of a computer –EX: Windows 98, Windows 2000, Windows XP, UNIX, Lynix, MAC/OS, etc –Most operating systems provide a graphical user interface (except UNIX and Lynix) Application Software –Programs written to perform a specific task –EX: Office 2000, Office XP, Quicken, etc.

Copyright © 2002 W. A. Tucker7 Computer Instructions Programmers must “tell the computer what to do” The computer will do exactly what the programmer tells the computer to do, nothing more and nothing less.

Copyright © 2002 W. A. Tucker8 Computer Language Computers understand only the binary number system (zeros and ones) –All data stored in the computer is stored as a series of zeros and ones –All instructions telling the computer what to do are stored as a series of zeros and ones People do not naturally think in terms of zeros and ones (the binary number system)

Copyright © 2002 W. A. Tucker9 Programming Languages Programming languages allow a programmer to give the computer instructions in a manner that the programmer can understand Assembly Language is a low level language, where the programmer uses a mnemonic (abbreviation) to communicate an instruction to the computer –EX: “A” or “add” for addition This mnemonic is translated into machine language (binary) by a program called an assembler

Copyright © 2002 W. A. Tucker10 More on Programming Languages Assembly language is a one for one mapping to the machine language and has to be rewritten for each machine (not all machine languages are the same) An Assembler translates assembler code into machine language that a computer may execute High level languages were created to allow programmers to write at a level where one programming instruction is converted into several machine language instructions and to avoid having to constantly rewrite the program A compiler converts high level language into machine language that a computer may execute

Copyright © 2002 W. A. Tucker11 Examples of Languages High Level Languages –BASIC, C, COBOL, FORTRAN, PASCAL Object Enabled Languages –C++ Object Oriented Languages –Java, C#

Copyright © 2002 W. A. Tucker12 Development Environment Developing a program in a high level language requires certain tools –Editor – type in a program and save as a file (called the source program) –Compiler – converts source program into machine language (called the object program) –Linker – Combines object program with other programs (include files) to produce executable code (called the load module) –Loader – Loads executable code into memory

Copyright © 2002 W. A. Tucker13 Integrated Development Environment (IDE) Editor Source File Compiler Object File Linker Object File.cpp extension.exe extension Loader Syntax Errors Linker Errors Loader Errors

Copyright © 2002 W. A. Tucker14 Software Development Method 1)Specify the problem 2)Analyze the problem 3)Design the algorithm to solve the problem - Desk Checking 4)Implement the Algorithm - Coding 5)Test and verify the completed program - Compiling and Executing 6)Maintain and update the program

Copyright © 2002 W. A. Tucker15 Structured Programming Dividing a larger problem into smaller parts –AKA: tops-down design, stepwise refinement, modular programming –Identify what steps need to be done, usually VERBS –(ie: calculate, process, get, display, etc) Each smaller part is then solved using one of three types of programming structure –Sequential structure –Selection structure –Repetition (looping) structure

Copyright © 2002 W. A. Tucker16 Procedural Solutions Using structured programming, most problems can be solved using the following general procedural steps –Get the input –Process the input –Display (output) the results

Copyright © 2002 W. A. Tucker17 Object Oriented Programming Humans interact with objects every day –Driving a car –Purchasing groceries OOP involves defining the attributes (data) and behaviors (operations) of objects (usually NOUNS) Combining these attributes and behaviors into a class is called encapsulation

Copyright © 2002 W. A. Tucker18 Advantages of Objects Once an object is designed, implemented and tested everyone can use it –Improves productivity –Supports portability or reuse of code –All of which reduce development time