Victoria Ibarra Mat:717202.  Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output.

Slides:



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

Lecture 1: Overview of Computers & Programming
INTRODUCTION OF COMPUTER
Chapter 1 - An Introduction to Computers and Problem Solving
II N T R O D U C T I O N PP R E T E S T DD E S I G N I N G A L G O R I T H M DD E S I G N I N G F L O W C H A R T GG E N E R A L R U L E S F.
Using Computers CS French Chapter 1.
Chapter 1: An Overview of Computers and Programming Languages J ava P rogramming: From Problem Analysis to Program Design, From Problem Analysis to Program.
CIS105 Chapter 1 Theory Review. Page 2 Hardware and Software are the two major components o any computer system Hardware is the set of physical devices.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
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 C++ Programming:
About the Presentations The presentations cover the objectives found in the opening of each chapter. All chapter objectives are listed in the beginning.
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.
Introduction to Computers and Programming
CS102 Introduction to Computer Programming
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.
Chapter Introduction to Computers and Programming 1.
CSC 125 Introduction to C++ Programming Chapter 1 Introduction to Computers and Programming.
Chapter 1 An Overview of Computers and Programming Languages.
BACS 287 Basics of Programming BACS 287.
Chapter 3 Computer Hard ware
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Chapter 1: Preliminaries. Objectives In this chapter, you will learn about: Unit analysis Exponential and scientific notations Software development Algorithms.
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.
Introduction to Programming Using C Introduction to Computer Programming.
PROGRAMMING LANGUAGES Prof. Lani Cantonjos. PROGRAM - set of step-by-step instructions that tells or directs the computer what to do. PROGRAMMING LANGUAGE.
TMF1013 : Introduction To Computing Lecture 1 : Fundamental of Computer ComputerFoudamentals.
Components of a Computer Prepared by: Mrs. McCallum-Rodney.
Introduction to Computers (L02) * Hardware * Software * Programming Languages * Three Phase of Program Development * Development and Design Steps * Algorithms.
Problem Solving Techniques. Compiler n Is a computer program whose purpose is to take a description of a desired program coded in a programming language.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Programming Fundamentals1 Chapter 1 INTRODUCTION TO COMPUTER AND PROGRAMMING.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Intro to Computers Computer Applications. What is a Computer? Initially the term computer referred to an individual whose job it was to perform mathematical.
PROGRAM DEVELOPMENT CYCLE. Problem Statement: Problem Statement help diagnose the situation so that your focus is on the problem, helpful tools at this.
CHAPTER 1 INTRODUCTION 2 nd Semester H King Saud University College Of Applied Studies and Community Services CSC 1101 Computer Programming-1.
CS 127 Introduction to Computer Science. What is a computer?  “A machine that stores and manipulates information under the control of a changeable program”
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
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
Chapter 1 An Overview of Computers and Programming Languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Introduction to Computer Programming using Fortran 77.
PROGRAMMING FUNDAMENTALS INTRODUCTION TO PROGRAMMING. Computer Programming Concepts. Flowchart. Structured Programming Design. Implementation Documentation.
INTRODUCTION TO COMPUTER PROGRAMMING(IT-303) Basics.
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.
Software Engineering Algorithms, Compilers, & Lifecycle.
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.
Programming Logic and Design Seventh Edition Chapter 1 An Overview of Computers and Programming.
Chapter I: Introduction to Computer Science. Computer: is a machine that accepts input data, processes the data and creates output data. This is a specific-purpose.
Chapter 1 Introduction 2nd Semester H
Java Programming: From the Ground Up
CSCI-235 Micro-Computer Applications
Chapter 1: An Overview of Computers and Programming Languages
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
DDC 1023 – Programming Technique
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
Computer Based Technology:
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.
Computer components is a programmable machine that receives input, stores and manipulates data, and provides output in a useful format. Computer The computer.
Programming Logic and Design Eighth Edition
Presentation transcript:

Victoria Ibarra Mat:717202

 Generally, Computer hardware is divided into four main functional areas. These are:  Input devices Input devices  Output devices Output devices  Central Processing Unit (CPU) Central Processing Unit (CPU)  Memory Memory

 Input Devices: Allows getting data into the computer. A simple example of input device is keyboard.  Output devices: Shows the result after processing data or information.

 Central Processing Unit (CPU): It is electronic circuit that manipulates data into the required information; It consists of two parts: Arithmetic Logic Unit (ALU) and Control Unit (CU).  Arithmetic Logic Unit It the “Brain” of the computer system, i.e., performs the most important operation of the computer system – arithmetic and logic operation on the data.  Control Unit Directs and coordinates the execution of stored program instruction.

 Memory: There are two kinds of computer memory: primary and secondary.  Primary memory is accessible directly by the processing unit. Random Access Memory (RAM) is an example of primary memory. As soon as the computer is switched off the contents of the primary memory is lost. You can store and retrieve data much faster with primary memory compared to secondary memory.  Secondary memory is used to store data permanently. An example of this type of memory includes floppy disks, magnetic disk. Primary memory is more expensive than secondary memory (because of this the size of primary memory is less than that of secondary memory).

 Computer is a dumb machine and it cannot do any work without instruction from the user; it requires specific logically related instructions that the developer feeds into a computer to solve a particular problem.  It can be acquire a program in two ways; packaged software and custom software. Package software is a readymade set of programs while custom software is a set of programs that a written according to the user’s requirements.

 It is a set of rules that provides a way of telling the computer what operations to perform.  A programming language, the key to communicating with the computer, has certain definite characteristics. It has a limited vocabulary. Each “word" in it has precise meaning. Even though a programming language has limitations, it can still be used in a step-by-step fashion to solve complex problems. There is not, however, just one programming language; there are many. Ex.:  COBOL, BASIC, FORTRAN, C, C++, and Pascal. All languages have a grammar of their own -known as syntax of the language.

 Before a program is written, a detail specification must be drawn up showing exactly what is to be done by the program. It is very important that a programmer should not start trying to write a computer program before a clear specification has been created. Usually, such as a specification is in three main parts:  Input: a description of the format of the input data.  Output: a description of the format of output data.  Processing: a description of the processes of the program must follow to get the output from the input.

 When preparing problem solutions for the computer, it is not enough just to know the rules of a computer language; developing a program requires five steps:  Defining the problem Defining the problem  Planning the solution Planning the solution  Coding the Program Coding the Program  Testing the Program Testing the Program  Documentation Documentation

 Defining the Problem: Analyzing system requirements, i.e., kind of input, processing, and output required.  Planning the solution: To solve programming problem, one must follow a methodical approach, i.e., design an ordered set if activities that will convert a given input into the desired an algorithm for the problem; an algorithm consists of three main components ( these are input, process and output). algorithm

 Algorithm is a step-by-step procedure to solve a given problem  Algorithms implemented by a computer are known as computer programs.  A program consists of basically the following operations:  Sequence in order  Selection - Choosing from set (e.g., if…else)  Iteration – Repetition These three operations are sufficient to describe any algorithm.  In the problem-solving phase of computer programming, you will be designing algorithms. This means that you will have to be conscious of the strategies you use to solve problems in order to apply them to programming problems. These algorithms can be designed though the use of flowcharts or pseudocode.

 Coding the Program: We need a language to express an algorithm. A computer algorithm requires a computer language. There are many high-level languages, each with a different compiler, such as FORTRAN, COBOL, C, C++, Pascal, ADA, ALGOL, BASIC, etc.  Testing the Program: Once the program code is written, it is very unlikely that it will be perfect on the first run. Programming errors are common in the early versions of the program.

 Documenting the Program: Documenting the program is a detailed description of the programming cycle and specific facts about the program. Documenting is an on-going process needed to supplement human memory and help organize program planning. Documentation is also critical to communication with other who might have an interest in your program

A procedure is a finite sequence of well-defined instructions, each of which can be mechanically carried out in a finite amount of time. Flowcharting is a tool developed in the computer industry, for showing the steps involved in a process. A flowchart is a diagram made up of boxes, diamonds and other shapes, connected by arrows - each shape represents a step in the process, and the arrows show the order in which they occur. Flowcharting combines symbols and flowlines, to show figuratively the operation of an algorithm.

Flowcharting Symbols: There are 6 basic symbols commonly used in flowcharting of assembly language programs: Terminal, Process, input/output, Decision, Connector and Predefined Process. Flowcharting Symbols