Introduction to Computers

Slides:



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

Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
CMP 131 Introduction to Computer Programming Violetta Cavalli-Sforza Week 1, Lab.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Chapter 3 Software Two major types of software
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Course: Introduction to Computers
Lesson 4 Computer Software
TC2-Computer Literacy Mr. Sencer February 8, 2010.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Hardware vs. Software Computer systems consist of both hardware and software. Hardware refers to anything you can physically touch. Keyboards, mice, monitors,
Languages and Environments Higher Computing Unit 2 – Software Development.
Computer Software Unit C. Software Categories System Software Application Software.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Microsoft Visual Basic 2005: Reloaded Second Edition
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming 1.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
Computer Programming A program is a set of instructions a computer follows in order to perform a task. solve a problem Collectively, these instructions.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
10/8: Software What is software? –Types of software System software: Operating systems Applications Creating software –Evolution of software development.
Software Development Programming & Languages. Programming: A Five-Step Procedure Define the problem Design a solution Code the program Test the program.
I Power Higher Computing Software Development Development Languages and Environments.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
Software. Introduction n A computer can’t do anything without a program of instructions. n A program is a set of instructions a computer carries out.
What is a Computer An electronic, digital device that stores and processes information. A machine that accepts input, processes it according to specified.
Chapter 1: Introduction to Computers and Programming.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction To Visual Basic 6
Computer Systems Nat 5 Computing Science
Introduction to Computers
Topic 2: Hardware and Software
Why don’t programmers have to program in machine code?
Development Environment
Component 1.6.
CSCI-235 Micro-Computer Applications
Key Ideas from day 1 slides
Introduction to Visual Basic 2008 Programming
Event-driven programming
Computer Systems Nat 5 Computing Science
Computer 4 JEOPARDY Bobbie, Sandy, Trudy.
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
Introduction to Computers and Java
Getting Started Chapter 1 Copyright © 2000 W. W. Norton & Company.
Lecture 2 Introduction to Programming
Chapter 4 Computer Software.
Teaching Computing to GCSE
Unit# 8: Introduction to Computer Programming
TRANSLATORS AND IDEs Key Revision Points.
Teaching Computing to GCSE
Translators & Facilities of Languages
VISUAL BASIC.
Chapter 6 System and Application Software
CIS16 Application Development Programming with Visual Basic
COMPUTER SOFT WARE Software is a set of electronic instructions that tells the computer how to do certain tasks. A set of instructions is often called.
Topics Introduction Hardware and Software How Computers Store Data
CMP 131 Introduction to Computer Programming
Chapter One: An Introduction to Programming and Visual Basic
Introduction to Computer Software
PROGRAMMING INTRODUCTION
ICT Programming Lesson 1:
Tonga Institute of Higher Education IT 141: Information Systems
Tonga Institute of Higher Education IT 141: Information Systems
Chapter 6 System and Application Software
Chapter 6 System and Application Software
Review of Previous Lesson
Chapter 6 System and Application Software
Programming Logic and Design Eighth Edition
Presentation transcript:

Introduction to Computers

What is software? A set of instructions that tell a computer how to perform a specific task Written in one of many computer languages The instructions must follow a set of rules called syntax just as English must follow rules of grammar Syntax is governed by the computer language used Usually consists of many elements including instructions, forms, icons, help text, etc. Not a physical thing, you can’t touch software

Elements of software Consists of many types of files working together: Programs (.exe) –a main executable file Shared modules (.dll) –executable file supporting the main executable & shared by multiple programs Data files (.dat and others) –contains data needed by the program(s) Text files (.hlp & .txt) –information for users Graphics files (.ico, gif, pcx, and others) – contains graphics used such as icons and other images Plus other types of files too numerous to mention

A program is installed in a folder Note the various files required for this particular program Programs Shared Modules Data File Images Icons Sound Files

Programming is highly detailed Software provides a task-related environment Word displays the document the user creates Excel displays rows and columns of a spreadsheet Internet Explorer displays web pages A programmer defines the entire environment including every icon, text box, button, and menu Must define height, width, location, and other characteristics of each element in the environment And more importantly, the actions to perform when the user clicks on an element in the environment

A program – Convert Farenheit to Celsius txtFarenheit txtFarenheit Characteristics Private Sub btnConvert_Click 'Declare working variables needed Dim farenheit As Single Dim celsius As Single 'Make sure text box contains a number If IsNumeric(txtFarenheit.Text) Then 'Convert text box entry to a number farenheit = Val(txtFarenheit.Text) 'Calculate the equivalent Celsius temperature celsius = (farenheit - 32) * 5 / 9 'Place resulting celsius temp in the form lblCelsius.Text = celsius.ToString Else 'If no number in text box, display error message MessageBox.Show("Please enter a number to convert") End If End Sub lblCelsius btnConvert

High-level languages Previous slide an illustration of the Visual Basic programming language Visual Basic is a high-level language Most software is written in a high-level language Allows programmers to create complex instructions well above the level at which the processor operates A set of instructions in a high-level language is referred to as source code Other high-level languages include C, C++, Java, Fortran, and COBOL

Machine Language The processor executes instructions at a fairly simple level called machine language Processor dictates the machine language used High-level Language Instruction Equivalent Instructions In Machine Language Description of Machine Language Instruction Answer = Number1 + Number2 10001000 00011000 01000000 Move RAM Location Called Number1 into Register 1 10001000 00010000 00100000 Move RAM Location Called Number2 into Register 2 00000000 00010001 00010010 Add Register 1 and Register 2 to the Accumulator 10100001 00110110 Move Accumulator to RAM Location Called Answer

The role of a compiler A Visual Basic program has a .vb extension Must translate high-level language source code to the 1s and 0s of machine language A compiler does this conversion, creating a .exe program file called object code Program is then run by executing the .exe file

Interpreters Some high-level languages use an interpreter instead of a compiler An interpreter does not create a .exe file Instead it converts high level language instructions to machine language one instruction at a time Resulting machine language instructions are immediately sent to the processor for execution Machine language instructions are not saved Program must be re-interpreted every time it’s run

Interpreters versus compilers Interpreters are simpler Convert to machine language & send to processor But the interpreter is needed on every machine that must run an interpreted program Compilers are more efficient Conversion to machine language happens one time Program can execute repeatedly with no re-compile Compiler required on programmer’s computer only No compiler needed when executing the program

Platform dependence Machine language programs must utilize the instruction set of the processor they will run on It’s why processor is a determining factor in compatibility between computers A compiler creates a machine language program intended for a particular family type of processor The same high-level language may be used on multiple platforms But the compiler must be changed to produce object code compatible with that platform

Software categories System software performs tasks dealing with the internal operations of the computer Provides a reliable platform for application software Includes the operating system, device drivers, utilities, and programming languages Application software performs tasks needed by a user Includes many types such as document production, spreadsheets, database, music, accounting, etc.