By Kundang K Juman Hardware & Software. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing.

Slides:



Advertisements
Similar presentations
Fundamentals and a Brief History of Computer Systems.
Advertisements

Hardware Programming. COMP102 Prog. Fundamentals I: Hardware / Slide 2 l Four components of a computer system: n CPU - central processing unit –Makes.
COSC 120 Computer Programming
Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with Programming Logic & Design First Edition by Tony Gaddis.
Problem Solving and Program Design. COMP104 Problem Solving / Slide 2 Our First Program // a simple program #include using namespace std; int main() {
1 Engineering Problem Solving With C++ An Object Based Approach Fundamental Concepts Chapter 1 Engineering Problem Solving.
Wednesday, 9/4/02, Slide #1 1 CS 106 Intro to CS 1 Wednesday, 9/4/02  Today: Introduction, course information, and basic ideas of computers and programming.
Three types of computer languages
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Sixth Edition by Tony Gaddis, Judy Walters,
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages C++ 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.
Copyright 2003 Scott/Jones Publishing Brief Version of Starting Out with C++, 4th Edition Chapter 1 Introduction to Computers and Programming.
COMPUTER SOFTWARE Chapter 3. Software & Hardware? Computer Instructions or data, anything that can be stored electronically is Software. Hardware is one.
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.
Introduction COMP104: Fundamentals and Methodology.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
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.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Starting Out with C++ Early Objects Seventh Edition by Tony Gaddis, Judy.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide 1- 1 October 20, October 20, 2015October 20, 2015October 20,
1 CISC181 Introduction to Computer Science Dr. McCoy Lecture 1 February 8, 2005.
COMPUTER PROGRAMMING. A Typical C++ Environment Phases of C++ Programs: 1- Edit 2- Preprocess 3- Compile 4- Link 5- Load 6- Execute Loader Primary Memory.
1 Programming in C Hello World! Soon I will control the world! Soon I will control the world!
C++ Programming: From Problem Analysis to Program Design, Third Edition Chapter 1: An Overview of Computers and Programming Languages.
Computer Architecture
N from what language did C++ originate? n what’s input, output device? n what’s main memory, memory location, memory address? n what’s a program, data?
1 COMS 261 Computer Science I Title: C++ Fundamentals Date: September 05, 2005 Lecture Number: 4.
Hardware and Software Programming. COMP104 Lecture 2 / Slide 2 Hardware and Software l Why should we bother with hardware, while we are having a programming.
CS Computer Science I. BCPL was developed in 1967 as a language for writing operating systems and software compilers In 1970, the creators of the.
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.
A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)
Brief Version of Starting Out with C++ Chapter 1 Introduction to Computers and Programming.
Chapter 11  Getting ready to program  Hardware Model  Software Model  Programming Languages  Facts about C++  Program Development Process  The Hello-world.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming Dr. Halla Abdel Hameed.
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.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Computer Software.
Software Engineering Algorithms, Compilers, & Lifecycle.
Introduction to Programming By: Prof. Muhammad Abu Baker Siddique 2 nd Lecture 1.
Chapter 1: Introduction to Computers and Programming
Topic 2: Hardware and Software
BASIC PROGRAMMING C SCP1103 (02)
Chapter 1: An Overview of Computers and Programming Languages
Computer Terms Review from what language did C++ originate?
Engineering Problem Solving With C An Object Based Approach
Chapter 1: Introduction to computers and C++ Programming
Chapter 1: An Overview of Computers and Programming Languages
BASIC PROGRAMMING C SCP1103 (02)
Programming Introduction to C++.
Chapter 1: An Overview of Computers and Programming Languages
C++ Programming: From Problem Analysis to Program Design
Programming COMP104: Fundamentals and Methodology Introduction.
Chapter 1: Introduction to Computers and Programming
Computer Science I CSC 135.
Hardware & Software Programming. COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit.
Computer Terms Review from what language did C++ originate?
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

By Kundang K Juman Hardware & Software

COMP102 Prog. Fundamentals I: Software / Slide 2 l Four components of a computer system: n CPU - central processing unit –Makes decisions, performs computations, and delegates input/output requests n Memory: Disk Drives, CD drives, Tape drives, USB flash drives. –Stores information n Input devices: Keyboard, Mouse, –Gets information from the user to the computer n Output devices: monitor –Sends information from computer to the user Hardware

COMP102 Prog. Fundamentals I: Software / Slide 3 Hardware

COMP102 Prog. Fundamentals I: Software / Slide 4

COMP102 Prog. Fundamentals I: Software / Slide 5 l Application software n Easy-to-use programs designed to perform specific tasks l System software n Programs that support the execution and development of other programs n Two major types –Operating systems –Translation systems (compilers & linkers) Software

COMP102 Prog. Fundamentals I: Software / Slide 6 Copyright © 2000 by Brooks/Cole Publishing Company A division of International Thomson Publishing Inc.

COMP102 Prog. Fundamentals I: Software / Slide 7 Computer Software Relationships User Interface Basic Input and Output Services (BIOS) needed for a computer to boot up User InterfaceOperating System User InterfaceApplication Programs Computer Hardware

COMP102 Prog. Fundamentals I: Software / Slide 8 Application Software l Application software makes computer popular and easy to use l Common application software: Microsoft Word, WordPerfect PowerPoint Netscape, Internet Explorer PhotoShop, Photo-Paint Quick Time Dreamweaver

COMP102 Prog. Fundamentals I: Software / Slide 9 l Controls and manages the computing resources l Examples n Windows, Unix, MSDOS, l Important services that an operating system provides: n Security: prevent unauthorized users from accessing the system n Commands to manipulate the file system n Input and output on a variety of devices n Window management Operating System

COMP102 Prog. Fundamentals I: Software / Slide 10 What is a (programming) language? l A program needs to be written in a language l There are many programming languages n Low-level, understandable by a computer n High-level, needs a translator! l C++ is a high level programming language A sequence of instructions A program (in computer language) An algorthm (in human language)

COMP102 Prog. Fundamentals I: Software / Slide 11 l Machine binary language: unintelligible l Low-level assembly language n Mnemonic names for machine operations n Explicit manipulation of memory addresses n Machine-dependent l High-level language n Readable n Machine-independent Levels of programming language

COMP102 Prog. Fundamentals I: Software / Slide 12 Machine binary languageLow-level assemblyHigh-level An example:

COMP102 Prog. Fundamentals I: Software / Slide 13 How to translate? Examples of compilers: n Microsoft Visual C++, Eclipse, g++ A program written in high-level programming language (for example, C++ program) A low-level (machine language) program that is understandable by a computer (for example, a PC) COMPILER (for example, Visual C++)

COMP102 Prog. Fundamentals I: Software / Slide 14 Translation System l Set of programs used to develop software l Types of translators: Compiler Linker l Examples n Microsoft Visual C++, Eclipse, g++

COMP102 Prog. Fundamentals I: Software / Slide 15 Software Development l Major activities Editing (writing the program) Compiling (creates.obj file) Linking with compiled files (creates.exe file) –Object files –Library modules Loading and executing Testing the program

COMP102 Prog. Fundamentals I: Software / Slide 16 Integrated Development Environments l Combine all of the capabilities that a programmer would want while developing software (VC , Eclipse) Editor Compiler Linker Loader Debugger Viewer

COMP102 Prog. Fundamentals I: Software / Slide 17 Our First Program // a simple program #include using namespace std; int main() { cout << "Hello world!" << endl; return 0; } Print statement Ends execution of main() which ends program Comments Function named main() indicates start of program

COMP102 Prog. Fundamentals I: Software / Slide 18 Summary