School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic.

Slides:



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

Lecture 1: Overview of Computers & Programming
INTRODUCTION OF COMPUTER
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
COMPUTER SYSTEM CAN BE DIVIDED INTO : 1- General Computer 2- Special Computer.
UNIX Chapter 01 Overview of Operating Systems Mr. Mohammad A. Smirat.
Lecture 1: Intro to Computers Yoni Fridman 6/28/01 6/28/01.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
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.
Introduction to Computers
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
1-1 ICS102: Introduction To Computing I King Fahd University of Petroleum & Minerals College of Computer Science & Engineering Information & Computer Science.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
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.
CS 0008 Day 2 1. Today Hardware and Software How computers store data How a program works Operators, types, input Print function Running the debugger.
Alternate Version of STARTING OUT WITH C++ 4 th Edition Chapter 1 Introduction to Computers and Programming.
What is Information Technology?
CSCI 125 & 161 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk.
Configuration.
What is a Computer ? Computers are Electronic Machines that process (performs calculation and manipulation) Data under the control of Set of Instructions.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Introduction to Computers
An Introduction to Computers August 12, 2008 Mrs. C. Furman.
Introduction to Computers
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
1 Introduction to Computers Lect 1 Won’t tell you much you don’t know. (Misleading– the course gets more conceptual as we create webpages.) Will go into.
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 Computing Hardware & Software. INSIDE THE COMPUTER Hardware Physical components of the computer. Any part that you can see and touch Examples:
1 nd Semester Module1 Introduction to Computer and Programming Thanawin Rakthanmanon Create by: Aphirak Jansang Computer.
CPS120: Introduction to Computer Science Introduction to Computers.
What is computer hardware? Computer hardware are the physical components of the computer.
GCSE Information Technology Computer Systems 2 Hardware is the name that is given to any part of a computer that you can actually touch. An individual.
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Mrs. Ulshafer August, 2013 Java Programming Chapter 1.
Development of Computers. Hardware 1. Original concept: Charles Babbage 1840’s 2. 4 basic components of a computer system: input store mill output (Now:
1 st Semester Introduction to Computer and Programming Computer Engineering Department Kasetsart University, Bangkok, THAILAND.
Parts of the Computer System
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.
1 THE COMPUTER. 2 Input Processing Output Storage 4 basic functions.
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,
1 ENG224 INFORMATION TECHNOLOGY – Part I 1. Introduction to Computers.
2 nd Semester Module1 Introduction to Computer and Programming อภิรักษ์ จันทร์สร้าง Aphirak Jansang
Welcome to Technology Application Jeopardy. Hardware More Hardware Jobs & Software Computer Types Storage
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
CS 125 Lecture 2 Martin van Bommel. Hardware vs Software Hardware - physical components you can see and touch –e.g. processor, keyboard, disk drive Software.
Introduction To Computers
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 © 2010 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
1 Chapter 1 Background Fundamentals of Java: AP Computer Science Essentials, 4th Edition Lambert / Osborne.
Introduction to Computer Programming By: Mr. Baha Hanene Chapter 1.
Introduction To Computer Programming – 1A Computer Parts, Words, and Definition Herriman High School.
Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 
INTRODUCTION TO COMPUTERS. A computer system is an electronic device used to input data, process data, store data for later use and produce output in.
Computer Basics 1 Computer Basics.
COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE
An Introduction to The computer.
Introduction to Computers
UNIV 103 CS Majors Seminar Dr. Blaise W. Liffick Fall 2017.
An Introduction to The computer.
Computer Science I CSC 135.
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Introduction to Computers
Computer Electronic device Accepts data - input
Computer Electronic device Accepts data - input
Presentation transcript:

School of Computer Science & Information Technology G6DICP Introduction to Computer Programming Milena Radenkovic

2 Definitions Computer Computer Machine that processes data to produce a desired result (output). Machine that processes data to produce a desired result (output). Very rapid execution of very simple instructions. Very rapid execution of very simple instructions. Computer program Computer program The instructions required to achieve a desired end result. The instructions required to achieve a desired end result.

3 Computer Hardware The physical components of a computer The physical components of a computer Electronic, Magnetic or Mechanical Electronic, Magnetic or Mechanical System - a set of hardware devices connected to make a functional computer. System - a set of hardware devices connected to make a functional computer. Computers are a set of switches Computers are a set of switches Mechanical Mechanical Electro-mechanical Electro-mechanical Electronic (transistors) Electronic (transistors) Integrated Circuits Integrated Circuits

4 Binary Encoding Binary is base 2 Binary is base 2 Switches can easily encode binary data Switches can easily encode binary data eg on=1, off=0 eg on=1, off=0 Binary Counting Binary Counting DecimalBinary

5 Bits & Bytes 1 binary digit is a bit 1 binary digit is a bit Bits are physically arranged in groups of 8 called Bytes This is the basic unit of computer memory. Bits are physically arranged in groups of 8 called Bytes This is the basic unit of computer memory

6 Bits & Bytes (cont.) One byte can encode an integer from One byte can encode an integer from Bytes = 1 Kilobyte 1024 Bytes = 1 Kilobyte 1024 Kilobytes = 1 Megabyte 1024 Kilobytes = 1 Megabyte

7 Hardware Components Central Processing Unit (CPU) Central Processing Unit (CPU) Memory (RAM) Memory (RAM) Random Access Random Access Volatile Volatile Data stoarage devices Data stoarage devices Hard disk, floppy disk, tape, CD-ROM etc. Hard disk, floppy disk, tape, CD-ROM etc. Input devices Input devices Keyboard, mouse, etc. Keyboard, mouse, etc. Output devices Output devices Monitor, printer, speakers etc. Monitor, printer, speakers etc.

8 Hardware System RAM CPU Storage Input Device Output Device

9 Computer Program Set of instructions for CPU Set of instructions for CPU "Switch Settings" "Switch Settings" Machine language Machine language Assembly language Assembly language Mmnemonics representing binary code Mmnemonics representing binary code Assembler Assembler 3rd Generation Languages 3rd Generation Languages "High Level" "High Level" Compiled or Interpreted Compiled or Interpreted

10 High Level Languages (3GL) Examples FORTRAN FORTRAN COBOL COBOL Pascal Pascal C C++ C++ Java Java

11 Interpreted Language Source Code Interpreter Machine Code Storage CPU/memory Program Execution

12 Compiled Language Source Code Compiler Storage CPU/memory Machine Code (executable binaries) Program Execution

13 Interpreted vs Compiled Interpreted Interpreted Easy to develop (can be modified and executed in one stage). Easy to develop (can be modified and executed in one stage). Distribution requirements (distribution of interpreter may be cumbersome and/or expensive). Distribution requirements (distribution of interpreter may be cumbersome and/or expensive). Machine code generated at runtime - processing overhead. Machine code generated at runtime - processing overhead. Compiled Compiled Development more cumbersome (compilation required when modified) Development more cumbersome (compilation required when modified) Easy to distribute (ie machine code is distributed) Easy to distribute (ie machine code is distributed) Machine code generated at compile time - much more efficient. Machine code generated at compile time - much more efficient.

14 Layers of Software Hardware Operating System Application eg Word, Excel, Netscape etc. eg Windows, Unix, MacOS etc. eg PC, Macintosh etc.

15 Operating System Provide basic services that access hardware Provide basic services that access hardware Input and Display Input and Display i/o - eg disk filing system, communications etc i/o - eg disk filing system, communications etc User administration, security etc User administration, security etc Provide user interface Provide user interface Provide programmers with an API (Application Programming Interface) Provide programmers with an API (Application Programming Interface) Examples: Examples: MS Windows 95/98/ME MS Windows 95/98/ME MS Windows NT/2000/XP MS Windows NT/2000/XP Macintosh OS X Macintosh OS X Linux (Unix) Linux (Unix) Solaris (Unix) Solaris (Unix)