Problem Solving Techniques Using Pascal Allen C.-H. Wu Department of Computer Science Tsing Hua University Hsinchu, Taiwan 30043, ROC

Slides:



Advertisements
Similar presentations
Computer Systems Nat 4/5 Computing Science Computer Structure:
Advertisements

Introduction to Computer Programming Nai-Wei Lin Department of Computer Science and Information Engineering National Chung Cheng University.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Lecture 1: Overview of Computers & Programming
COSC 120 Computer Programming
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Data Communications and Computer Networks
1 Lecture 1  Getting ready to program  Hardware Model  Software Model  Programming Languages  The C Language  Software Engineering  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.
CS 104 Introduction to Computer Science and Graphics Problems Basic Organization & Concepts 09/09/2008 Yang Song (Prepared by Yang Song and Suresh Solaimuthu)
Computer Hardware.
Chapter 1: An Overview of Computers and Programming Languages
Chapter 1- Visual Basic Schneider1 Chapter 1 An Introduction to Computers and Visual Basic.
1 Introduction to computers Overview l · Grading Policy »Cheating Rules (serious concern) »Examinations and Fixation of Timings »Quizzes »Homework Assignments.
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.
Chapter 1: Introduction To Computer | SCP1103 Programming Technique C | Jumail, FSKSM, UTM, 2005 | Last Updated: July 2005 Slide 1 Introduction To Computers.
CS102 Introduction to Computer Programming
The Study of Computer Science Chapter 0 Intro to Computer Science CS1510, Section 2.
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
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
CISC105 General Computer Science Class 1 – 6/5/2006.
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.
Computer Parts. Two Basic Parts Hardware & Software.
CPSC- 120 Principle of Computer Science I Computer = Hardware + Software.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Computer Architecture
COMPUTER ORGANISATION I HIGHER STILL Computing Computer Systems Higher Marr College Computing Department 2002.
Parts of the Computer System
Computer organization Practical 1. Administrative Issues The course requirements are: –To be nice and open minded –To pass the exam (there is a boolean.
Computer Hardware A computer is made of internal components Central Processor Unit Internal External and external components.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
Looking Inside the Computer System
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
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 1 09/04/13. Change Your Password  The command is: passwd In the lab first do : ssh -Y onyx  You will have to see me to change it, if you forget.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Senem KUMOVA METİN // Fall CS 115 Introduction to Programming Introduction to Computing.
Chapter 1 Introduction. Components of a Computer CPU (central processing unit) Executing instructions –Carrying out arithmetic and logical operations.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Computers and Programming ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
Chapter 1 An Overview of Computers and Programming Languages.
©2013 Pearson Education, Inc. Upper Saddle River, NJ. All Rights Reserved. Introduction to Computers and Computing.
C++ Programming: From Problem Analysis to Program Design, Fifth Edition Chapter 1: An Overview of Computers and Programming Languages.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Chapter 1 Looking Inside the Computer System.
Victoria Ibarra Mat:  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.
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.
Computer Organisation
Computing Science Computer Structure: Lesson 1: Processor Structure
Engineering Problem Solving With C An Object Based Approach
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
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
08/28/06 parts of the computer.
Chapter 1: Computer Systems
Computer Science I CSC 135.
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
ICS103 Programming in C 1: Overview of Computers And Programming
08/28/06 parts of the computer.
Presentation transcript:

Problem Solving Techniques Using Pascal Allen C.-H. Wu Department of Computer Science Tsing Hua University Hsinchu, Taiwan 30043, ROC

Chapter 1 Overview Of Computers and Programming

Overview Computer Do as I told you! HOW? ChipsProgram SoftwareHardware

A Computer System Central Processor Unit (CPU) Keyboard Mouse Main memory Hard/floppy disks Tape driver Monitor Printer Plotter Inputs Outputs

Interactions between the Users and Computer l The user develops a program. l The computer fetches the program and data through the input devices and stores them in the main memory. l The data then be accessed and manipulated by the CPU. l Finally, the results of this manipulation are fed back to the user via the output devices.

Analogy to Human Systems l A man/woman see a simple arithmetic problem (e.g., 1+1=?) from the blackboard. => Eyes are the input device. l He/she stores the data into his/her brain. => Brain cell ~ memory cell. l His/her brain computes 1+1 and stores the result of 2 into the brain cell. l Finally, he/she tells you or writes down the answer. => Mouth is the output device.

Anatomy of Memory l Address and contents of a memory cell. l Stored program concept. l Bytes and bits. l Storage and retrieve of information in memory. l Main memory (RAM and ROM). l Secondary memory and storage devices.

CPU and IO Devices l The CPU has two roles: (1) coordinating all computer operations and (2) performing arithmetic and logical operations on data. l The CPU retrieves the instruction stored in memory in sequence. l IO devices communicates users and computers. l Computer networks and file servers.

Human, Computer, Problem Solving HumanProblem Describe or formulate Language, program Computer Solve Solution

Programming Strategy l Plan your program solution. l Desk check your solution plan (make changes to your solution). l Write out your program. l Desk check your program (makes changes to your program). l Enter the program into the computer.

Overview of Programming Languages l Programming languages => Programs. l Machine languages => string of 0s and 1s => understand by the computer. l High-level languages => everyday languages => understand by the users. l Language standard => grammar (syntax & semantics). l Source program => object program.

Processing a High-Level Language Program l Editing a program. l Compiling the program - syntax error checking. l Linking and loading the object program and storing it in the memory for execution. l Preparing the input file, executing the program, and output the results.

Turbo Pascal l Two common used operating systems (OS): Microsoft Disk Operating System (DOS) and Microsoft Windows (Windows).