Chapter 1 Computer and Programming. By Zerihun Alemayehu

Similar documents
Introduction to Computers. Joslyn A. Smith

Chapter Two. Hardware Basics: Inside the Box

An Overview of the Computer System. Kafui A. Prebbie 24

Chapter 1: Why Program? Computers and Programming. Why Program?

The Programming Process Summer 2010 Margaret Reid-Miller

CMSC 104 -Lecture 2 John Y. Park, adapted by C Grasso

Computer is an electronic machine that can receive, store, transform and output data of all kinds (image, text, numeric, graphics and sound).

Introduction To Computer Hardware. Hafijur Rahman

INTRODUCTION TO COMPUTERS

Week One: Introduction A SHORT INTRODUCTION TO HARDWARE, SOFTWARE, AND ALGORITHM DEVELOPMENT

Elements of Computers and Programming Dr. William C. Bulko. What is a Computer?

15/09/15. Introduction to Computers & The Internet. Contents. Computer hardware and software. Input and output devices CPU. Memory.

Intermediate Programming & Design (C++) Notation

System Unit Components Chapter2

What is the typical configuration of a computer sold today? 1-1

9/7/2012. Introduction. Peeking into Computer Science. Jalal Kawash Mandatory: Chapter 1 Optional: None. Reading Assignment

Lab Determining Data Storage Capacity

Downloaded From :

Computer Programming-1 CSC 111. Chapter 1 : Introduction

COMP Computer Basics. Yi Hong May 13, 2015

Chapter 1: Introduction to Computers and Programming

Chapter 4 The Components of the System Unit

INTRODUCTION TO INFORMATION & COMMUNICATION TECHNOLOGY (ICT) LECTURE 2 : WEEK 2 CSC-111-T

Pharmacy college.. Assist.Prof. Dr. Abdullah A. Abdullah

Fundamentals of Programming Session 1

Chapter 1: An Overview of Computers and Programming Languages. Objectives. Objectives (cont d.) Introduction

Computers Are Your Future

HARDWARE AND OPERATING SYSTEMS

Zimmer CSCI /24/18. CHAPTER 1 Overview. COMPUTER Programmable devices that can store, retrieve, and process data.

AN INTRODUCTION TO THE COMPUTER

Agenda Computer Hardware Input Devices Output Devices Secondary Storage Computer Software System Software Application Software Working with Windows

Chapter. Focus of the Course. Object-Oriented Software Development. program design, implementation, and testing

KULLEĠĠ SAN BENEDITTU Secondary School, Kirkop

Information Communications Technology (CE-ICT) 6 th Class

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Introduction to Computers

Management Information Systems OUTLINE OBJECTIVES. Information Systems: Computer Hardware. Dr. Shankar Sundaresan

Chapter One: Introduction A SHORT INTRODUCTION TO HARDWARE, SOFTWARE, AND ALGORITHM DEVELOPMENT

Electricity: Voltage. Gate: A signal enters the gate at a certain voltage. The gate performs operations on it, and sends it out was a new signal.

Main Parts of Personal Computer

Chapter 1: Why Program? Main Hardware Component Categories 8/23/2014. Main Hardware Component Categories: Why Program?

TUTORIAL Describe the circumstances that would prompt you to use a microprocessorbased design solution instead of a hard-wired IC logic design.

CHAPTER 1: INTRODUCTION TO COMPUTERS AND PROGRAMMING. 1 Muhalim Mohamed Amin Faculty of

Fundamentals of Programming Session 1

Computers Are Your Future

Discovering Computers 2012

Ch. 1: Computer System part I

Chapter 2. Prepared By: Humeyra Saracoglu

Programming 1. Lecture 1 COP 3014 Fall August 28, 2017

Components of a personal computer

About the Presentations

Angel International School - Manipay 1 st Term Examination November, 2015 ICT

SCSP Programming Technique C

Computer Fundamentals

2011 Francisco Delgadillo

Chapter One. Introduction to Computer System

Components of a Computer System

CC411: Introduction To Microprocessors

Homeschool Enrichment. The System Unit: Processing & Memory

Programming 1 - Honors

System Unit Components. Chapter2

Chapter 1 Introduction to Computers and Programming

Intentionally Blank 0

CREATED BY M BILAL & Arslan Ahmad Shaad Visit:

Microprocessors I MICROCOMPUTERS AND MICROPROCESSORS

Hardware and Software - Revision Summary

Computer Organization

A+ Guide to Hardware: Managing, Maintaining, and Troubleshooting, 5e. Chapter 1 Introducing Hardware

Computer Organization

Terminology, Types of Computers & Computer Hardware

Introduction To Computers: Hardware

Week 0: Intro to Computers and Programming. 1.1 Why Program? 1.2 Computer Systems: Hardware and Software. Hardware Components

CMSC 1513 Lecture 1.2

Unit - II. Computer Concepts and C Programming 06CCP13. Unit II

ST. MARY S COLLEGE FORM 4

Topic :- COMPUTER BASICS Subject :- COMPUTER BASICS Class :- I Semester BCA

Computer Architecture and Assembly Language. Spring

BSNL TTA Question Paper-Computers Specialization 2007

MEHRAN UNIVERSITY OF ENGINEERING AND TECHNOLOGY, JAMSHORO. FIRST TERM FIRST YEAR (1 ST TERM) B.E.(ELECTRICAL) REGULAR EXAMINATION 2009 OF 09-BATCH.

Computer Basics 1/24/13. Computer Organization. Computer systems consist of hardware and software.

Computer Hardware. Lect 3: Input / System Unit/Output & Storage

Motithang Higher Secondary School Thimphu Thromde Mid Term Examination 2016 Subject: Computer Studies Full Marks: 100

KULLEĠĠ SAN BENEDITTU Secondary School, Kirkop

B. Sc. FOOTWEAR TECHNOLOGY (BSCFWT) Term-End Examination. June, 2012 BFW-037 : COMPUTER SCIENCE SECTION-A

8/16/12. Computer Organization. Architecture. Computer Organization. Computer Basics

Introduction To Computers: Hardware and Software

Problem Solving and Program Design - Chapter 1. Cory L. Strope

Computer Architecture 2/26/01 Lecture #

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

Computer Architecture Dr. Charles Kim Howard University

COMPUTER AWARENESS. 1) 1.A normal CD-ROM usually can store up to... 1) 680 KB. 2) 680 Bytes 3) 680 MB 4) 680 GB

INFORMATION SYSTEM PARTS AND COMPUTER TYPES

CMPUT101 Introduction to Computing - Summer 2002

! Learn how to think like a computer scientist. ! Learn problem solving. ! Read and write code. ! Understand object oriented programming

Which type of computer is used to operate large corporate systems and databases

Q1. Briefly describe the characteristic features of input and output devices of a computer system.

Question Bank. Fundamentals Of Computer FYBCA (SEM - I)

Chapter 4 The Components of the System Unit

Sahalsoftware college. Welcome To understanding Basic Computer Concept

Transcription:

Chapter 1 Computer and Programming By Zerihun Alemayehu

What is computer? A device capable of performing computations and making logical decisions at speeds millions (even billions) of times faster than human beings can Computers process data under the control of sets of instructions called computer programs

CRT Display The Box CD-ROM Drive Keyboard Floppy Disk Drive Mouse

Input Devices

Output Devices

Memory unit RAM - Random Access Memory The main 'working' memory used by the computer. When the operating system loads from disk when you first switch on the computer, it is copied into RAM.

Arithmetic and logic unit (ALU) This unit is responsible for performing calculations + - x It contains the decision mechanisms that allow the computer, for example, to compare two items from the memory unit to determine whether they are equal.

Central processing unit (CPU) Coordinates and supervises the operation of the other sections

Secondary storage unit ROM Read Only Memory A special type of memory chip that holds software that can be read but not written to.

Printer Mouse Keyboard Modem Ports bus Disk controller Graphics card Monitor CPU Sound card Speakers RAM Network card Computer

Computer Memory All computers work on a binary numbering system, i.e. they process data in one's or zero's. This 1 or 0 level of storage is called a bit. Byte = 8 bits Kilobyte (KB) = 1024 bytes Megabyte (MB) = 1024 KB Gigabyte (GB) = 1024 MB

Binary number system 1 s place 10 s place 100 s place 1 s place 2 s place 4 s place (Base 10) 129 129= 1 x 10 0 + 2 x 10 1 + 9 x 10 2 101 (Base 2) 101= 1 x 2 0 + 0 x 2 1 + 1 x 2 2 n bits 2 n possible values 8 bits (1 byte) 256 values (-128 to 127) 16 bits (2 bytes) 65, 536 values 32 bits (4 bytes) 4, 294, 967, 296 values

Inside Computer

Computer Languages Machine languages (0s and 1s) Assemblers Assembly languages Compilers High level languages (FORTRAN, Basic, C, C++, Java, etc.)

History of FORTRAN FORTRAN (FORmula TRANslation): IMB 1950s FORTRAN II FORTRAN IV FORTRAN 66 FORTRAN 77 FORTRAN 90 FORTRAN 95 FORTRAN 2003

Programming An engineering problem solving methodology using computers consists of Problem Statement Input/Output Description Hand Example Algorithm Development Testing A solution to a problem is called an algorithm; it describes the sequence of steps to be performed for the problem to be solved.

Algorithm Problem 1: start your car Algorithm: 1. Insert the key. 2. Make sure the transmission is in Park (or Neutral). 3. Depress the gas pedal. 4. Turn the key to the start position. 5. If the engine starts within six seconds, release the key to the ignition position. 6. If the engine doesn't start in six seconds, release the key, wait ten seconds, and repeat steps 3 through 6, but not more than five times. 7. If the car doesn't start, call the garage.

The Four Phases Phase 1: Creating a Program Phases 2: Compiling Phase 3: Linking Phase 4: Execution Editing source code (.F90,.F95,.F) FORTRAN program machine language executable image Object code

Required Tools Hardware - Computer - Compiler - Paper & pencil Software - Knowledge - Creativity - Motivation

From problem to program 1. Specify the problem clearly 2. Analyse the problem and break it down into its fundamental elements 3. Code the program according to the plan developed at step 2 4. Test the program exhaustively, and repeat steps 2 and 3 as necessary until the program works correctly in all situations

Example 1. Problem Write a program that will ask the user the radius of a circle and which will calculate the area of the circle and then displays the area of the circle.

2. Steps to the solution Solution 1) Read the radius, r 2) Calculate the area of the circle using = πr 2 /4 3) Display the area of the circle

Solution 3. Write the program PROGRAM circle IMPLICIT NONE REAL :: r, area, pi = 3.414! Ask the user for the data PRINT*, please give the radius READ*, r area = pi * (r **2)/4!Display the result PRINT*, The area of the circle =, area END PROGRAM Circle!Calculate the area

Sources Compiler www.silverfrost.com/32/ftn95/ftn95_personal_edition.aspx Course notes aaucivil.wordpress.com/fortran