Chapter 1 : Overview of Computer and Programming By Suraya Alias

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
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Copyright © 2002 W. A. Tucker1 Chapter 1 Lecture Notes Bill Tucker Austin Community College COSC 1315.
Overview of Computers & Programming Languages Chapter 1.
ICS103 P ROGRAMMING IN C L ECTURE 1: O VERVIEW OF C OMPUTERS & P ROGRAMMING.
1 Hardware - devices for Input. 2 Hardware - devices for Input Processing.
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 © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
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.
COMP 14 Introduction to 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:
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.
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.
CS102 Introduction to Computer Programming
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
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
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.
Chapter 1 An Overview of Computers and Programming Languages.
Chapter Two Hardware Basics: Inside the Box. ©1999 Addison Wesley Longman2.2 Chapter Outline What Computers Do A Bit About Bits The Computer’s Core: CPU.
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.
MAC OS – Unit A Page: 10-11, Investigating Data Processing Understanding Memory.
CISC105 General Computer Science Class 1 – 6/5/2006.
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
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 Overview of Computers and Programming J. H. Wang ( 王正豪 ), Ph. D. Assistant Professor Dept. Computer Science and Information Engineering National.
Computer Parts. Two Basic Parts Hardware & Software.
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.
Basic of Programming Language Skill Area Computer System Computer Program Programming Language Programmer Translators.
Computer Architecture
Beginning Snapshots Chapter 0. C++ An Introduction to Computing, 3rd ed. 2 Objectives Give an overview of computer science Show its breadth Provide context.
Chapter 1 Computers, Compilers, & Unix. Overview u Computer hardware u Unix u Computer Languages u Compilers.
Copyright 2003 Scott/Jones Publishing Standard Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
The Computer System CS 103: Computers and Application Software.
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 and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
Chapter 1 An Overview of Computers and Programming Languages.
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 
BASIC PROGRAMMING C SCP1103 (02)
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
Overview of Computers & Programming Languages
Computer Science I CSC 135.
Computers: Hardware and Software
ICS103 Programming in C 1: Overview of Computers And Programming
Presentation transcript:

Chapter 1 : Overview of Computer and Programming By Suraya Alias

 Computer A machine that can receive, store, transform, and output data of all kinds  Microproccesor / Central Processing Unit (CPU) A silicon chip containing the circuitry for a computer processor Coordinates all computer operations and perform arithmetic and logical expression on data  Hardware The actual component equipment such as mouse, monitor, keyboard. Is tangible.  Software Set of programs associated with a computer Programs – list of instructions that enables computer to perform specific task Is Intangible or not tangible 1-2

1-3

1-4

 Memory Refers to data storage such as Random Access Memory (RAM) and Read Only Memory (ROM)  Memory cell an individual storage location in a memory  Address memory the position of the memory cell in the main memory  RAM Volatile memory (need power to access it), the part of the main memory that temporarily stores programs, data and results  ROM Non-volatile memory, the part of memory that permanently stores program and data such as system date and time in your pc or BIOS settings 1-5

1-6

1-7

1-8 Bit – Binary digit of 0 and 1 Byte  the amount of storage required to store a single character  1 byte = 8 bits  1Kilobyte = 1024 byte  1Megabyte = 1024 KB  1Gigabye = 1024 MB

1-9 Data storage To retrieve data and to store data from the main memory Secondary Storage Units such as hard disk, flash drive that retain data even the power is off Register high speed memory location inside the CPU

1- 10

 Local Area Network (LAN) Computer, printers, scanners devices connected by cables for intercommunication  Metropolition Area Network (MAN) is a large computer network that usually spans a city or a large campus. A MAN usually interconnects a number of local area networks (LANs) using a high-capacity backbone technology, such as fiber-optical links, and provides up-link services to wide area networks and the Internet  Wide Area Network (WAN) A network such as the Internet that connects computers and LANs over the world ***Discuss the differences between Internet, Intranet and Extranet

1- 12

1- 13

 System Software Operating System (OS), such as Windows Vista, MAC or Linux Software that controls interaction between user and the computer, and all the resources  Application software Used for specific task such as Microsoft Word, Adobe photoshop 1- 14

 Machine language Binary number codes understood by a specific CPU (is not standardized)  Assembly Language Mnemonic codes that correspond to machine language notification  High Level Language Machine-independent programming language that combines algebraic expression and English symbols such as C and C++. Such as x = x + y; Means that add the value of variable x and y, and store the results in variable x by replacing the previous value.  Compiler Software that translates a high-level language program into machine language 1- 15

 Source File File that contains program written in a high level language, the input for a compiler Created by the programmer using editor or word processor such as ‘helloworld.c’ The C compiler will scan the source file, checks the programs if it follows the syntax  Syntax Grammar rules of a programming language If ‘helloworld.c’ is correct, the compiler saves it in an object file such as “helloworld.o” using binary file format  Linker program Software that combines object files and resolves cross- reference to create an executable machine language program such as “helloworld.exe” that can be run using a loader  IDE (Integrated Development Environment) High level compiler that are sold/distributed as a package that combines an editor, compiler, linker and loader. Such as Visual C++, codeblocks 1- 16

1- 17

1- 18 Executing a program Input -> Process -> Output

 1) Specify the problem requirement  2) Analyze the problem  3) Design Algorithm to solve the problem  4) Implement the Algorithm  5) Test and verify the completed program  6) Maintain and update the program 1- 19

 Example  1) Problem Requirement State the problem clearly and what is required Compute and display the total cost of apples given the number of pounds of apples purchased and the cost per pounds of apples  2)Analysis Identifies the input, output or any additional requirement or constraint on the solution Problem Input  Quantity of apples purchased (in pounds)  Cost per pound of apples (in dollars per pound) Problem Output  Total cost of apples (in dollars) Formula  Total cost of apple = Cost per pound * pounds of apples

 Abstraction  The process of modeling a problem by extracting the essential variables and their relationship  Algorithm A list of steps for solving a problem  Top-down Design (divide and conquer) Breaking a problem into its major sub problems and then solving the sub problems  3) Design Designing the algorithm to solve the problem requires you to develop a list of steps called an algorithm. Use the top-down design method Algorithm for programming problem  1) get the data  2) perform computation  3) display the results

Stepwise refinement  Development of a detailed list of steps to solve a particular step in the original algorithm Desk checking  The step by step simulation of the computer execution of an algorithm  4) Implementation Implementing the algorithm involves writing it as program using programming language such C or C++  5) Testing Testing and verifying the program requires testing the completed program to verify that it works as desired  6) Maintenance Maintaining and updating the program involves modifying a program to remove previous errors and change of requirement 1- 22

 Case study Converting Miles to Kilometers  1) Problem Definition / Requirement Write a program to convert distance from miles to kilometers  2) Analysis What are the data requirement and formula needed? Problem Input  miles /*distance in miles*/ Problem Output  kms /*distance in kilometers*/ Relevant formula  1 mile = kilometers 1- 23

 3) Design Algorithm  1) Get the distance in miles  2) Convert the distance to kilometers  3) Display the distance in kilometers Step 2 needs refinement  1) Get the distance in miles  2) Convert the distance to kilometers  2.1) The distance in kilometers is times the distance in miles  3) Display the distance in kilometers 1- 24

1- 25