UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.

Slides:



Advertisements
Similar presentations
What is a Computer Program? For a computer to be able to do anything (multiply, play a song, run a word processor), it must be given the instructions.
Advertisements

Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 15 Programming and Languages: Telling the Computer What to Do.
Computers Are Your Future
Welcome to CMPE003 Personal Computer Concepts: Hardware and Software Winter 2003 UC Santa Cruz Instructor: Guy Cox.
Module 10 Programming ___tell computers what to do
Programming Creating programs that run on your PC
Computers Are Your Future © 2006 Prentice Hall, Inc.
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
Computers: Tools for an Information Age
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Copyright © 2001 by Wiley. All rights reserved. Chapter 1: Introduction to Programming and Visual Basic Computer Operations What is Programming? OOED Programming.
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.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Computers Are Your Future Tenth Edition Chapter 11: Programming Languages & Program Development Copyright © 2009 Pearson Education, Inc. Publishing as.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Program development & programming languages Chapter 13.
Programming Languages: Telling the Computers What to Do Chapter 16.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
Introduction to Computer Programming itc-314
Chapter Lead Black Slide Powered by DeSiaMore Powered by DeSiaMore.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Learning Objectives Data and Information Six Basic Operations Computer Operations Programs and Programming What is Programming? Types of Languages Levels.
Microsoft Visual Basic 2005: Reloaded Second Edition
GENERAL CONCEPTS OF OOPS INTRODUCTION With rapidly changing world and highly competitive and versatile nature of industry, the operations are becoming.
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.
Chapter 1: Introduction to Computers and Programming.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
1 Computer Systems -- Introduction  Chapter 1 focuses on:  the structure of a Java application  basic program elements  preparing and executing a program.
CMPE13Cyrus Bazeghi 1 Programming Languages Telling computers what to do.
Chapter 1: Introduction to Programs, and Java 1. Objectives To review programs (§ ). To understand the relationship between Java and the World Wide.
Java Programming, Second Edition Chapter One Creating Your First Java Program.
Chapter 3: Computer Software. Stored Program Concept v The concept of preparing a precise list of exactly what the computer is to do (this list is called.
The Teacher Computing Computer Languages [Computing]
Discovering Computers 2009 Chapter 13 Programming Languages and Program Development.
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 5 Information System Software.
CSC425 - Introduction To Computer Programming 1. 2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over.
Lecture 1 Introduction Figures from Lewis, “C# Software Solutions”, Addison Wesley Richard Gesick.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
Copyright © Prentice Hall Programming and Languages Chapter 14 Telling the Computer What to Do.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 4 Computer Software.
Principles of Software Development 1 Principles Of Software Design and Development Types of language / Choosing a language.
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.
1.
Chapter One An Introduction to Programming and Visual Basic.
Chapter 4 Software. Chapter 4: Software Generations of Languages Each computer is wired to perform certain operations in response to an instruction. An.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
Lecture-8 Introduction to computer languages.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
Introduction to Programming Languages © 2005 Prentice Hall, Inc. CXC IT Unit 2: Intro. to Programming.
Software Design and Development Languages and Environments Computing Science.
Chapter 1: Introduction to Computers and Programming.
PROGRAMMING (1) LECTURE # 1 Programming and Languages: Telling the Computer What to Do.
Computer Programming. Objectives Program and Programming Program and Programming Algorithms & Programs Algorithms & Programs Software Life Cycle Software.
Lecture 1 Introduction Richard Gesick.
CSCI-235 Micro-Computer Applications
Computer Programming.
Chapter 4 Computer Software.
Presentation transcript:

UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Module Objectives At the end of the module, students should be able to: –List and describe the levels of programming languages: machine, assembly, high level, very high level, and natural –Describe the major programming languages that are in use today –Explain the concepts of object-oriented programming

UNIVERSITI TENAGA NASIONAL “Generates Professionals” What is Programming ? Computer program –a series of instructions that directs a computer to perform task. Programming language –a set of words, symbols, and codes that enables a programmer to communicate instructions to a computer. –a set of rules that provides a way of telling the computer what operations to perform

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Levels of Programming Languages Lower-level languages – more like the 0s and 1s the computer itself uses Higher-level languages – more like the languages people use Divided into five generations 1.Machine language 2.Assembly languages 3.High-level languages 4.Very high-level languages 5.Natural languages

UNIVERSITI TENAGA NASIONAL “Generates Professionals” 1. Machine Language Programs and memory locations are written in strings of 0s and 1s Problems with machine languages –Programs are difficult to write and debug –Each computer has its own machine language Only option available to early programmers

UNIVERSITI TENAGA NASIONAL “Generates Professionals” 2. Assembly Languages Substitute mnemonic codes for 0s and 1s –For example, A for add, C for compare, etc. –Use names rather than binary addresses for memory locations Require an assembler to translate the program into machine language Still used for programming chips and writing utility programs Example: MOV AL, 61h ; Load AL with 97 decimal (61 hex)

UNIVERSITI TENAGA NASIONAL “Generates Professionals” 3. High-Level Languages Transformed programming –Programmers could focus on solving problems rather than manipulating hardware –Programs could be written and debugged much more quickly Requires a compiler to convert the statements into machine language –Each computer has its own version of a compiler for each language

UNIVERSITI TENAGA NASIONAL “Generates Professionals” 4. Very High-Level Languages Also called fourth-generation languages (4GLs) Considered nonprocedural languages –The programmer specifies the desired results, and the language develops the solution –Programmers can be about 10 times more productive using a fourth-generation language than a third-generation language

UNIVERSITI TENAGA NASIONAL “Generates Professionals” 5. Natural Languages Resemble written or spoken English –Programs can be written in a natural syntax, rather than in the syntax rules of a programming language The language translates the instructions into code the computer can execute

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Major Programming Languages FORTRAN COBOL BASIC RPG Visual Basic C Java

UNIVERSITI TENAGA NASIONAL “Generates Professionals” FORTRAN The first high-level language Stands for FORmula TRANslator Used primarily for engineering, mathematical, and scientific tasks

UNIVERSITI TENAGA NASIONAL “Generates Professionals” COBOL Stands for COmmon Business-Oriented Language Used primarily for business requirements –Processes large data files –Produces well-formatted reports

UNIVERSITI TENAGA NASIONAL “Generates Professionals” BASIC Stands for Beginners’ All- Purpose Symbolic Instruction Code Developed to teach programming to college students Became very popular with the introduction of the microcomputer

UNIVERSITI TENAGA NASIONAL “Generates Professionals” RPG Stands for Report Program Generator Designed to allow rapid creation of reports –Programmer simply describes the source data and desired report format

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Visual Basic Allows programmer to create Windows-like user interfaces –Programmer drags a control (button, text box, etc.) onto the form –VB creates the code associated with that control VB is event-driven –The user controls the program

UNIVERSITI TENAGA NASIONAL “Generates Professionals” C Originally designed to write systems software –Offers the ease of use of a high-level language with the efficiency of an assembly language Very portable – can be used with virtually every combination of computer and operating system #include main() { int number; printf("Enter an integer\n"); scanf("%d",&number); printf("Integer entered by you is %d\n", number); return 0; }

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Java A network-friendly programming language that permits a piece of software to run directly on many different platforms –Allows programmers to write one version of the program, rather than a separate version of each platform Very useful for Internet development –Java applets can run in the user’s Web browser public class HelloWorld { // method main(): ALWAYS the APPLICATION entry point public static void main (String[] args) { System.out.println ("Hello World!"); }

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Object-Oriented Programming Object – a self-contained unit that contains both data and its related functions Key terms in object-oriented programming –Encapsulation – an object isolates both its data and its related instructions –Attributes – facts that describe the object Also called properties –Methods – instructions that tell the object to do something –Messages – an outside stimulus that results in the change of the state of an object

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Using Objects Programmers define classes of objects –The class contains all attributes that are unique to objects of that class –An object is an instance (occurrence) of a class Objects are arranged hierarchically in classes and subclasses –Subclasses are derived from classes –Inheritance – a subclass possesses all attributes of the class from which it is derived –Additional attributes can be coded in the subclasses

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Activating the Object A message is sent to the object, telling it to do something –The object’s methods tell it how to do it Polymorphism – each object has its own way to process the message –For example, the class may have a Move method, but each subclass implements that method differently

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Object-Oriented Languages C++ Java C# Visual Basic

UNIVERSITI TENAGA NASIONAL “Generates Professionals” C++ An enhancement of the C language –Includes all features of C –Adds support for object-oriented programming Can be used as simply an improvement of C, without the object-oriented features

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Java A pure object-oriented program Used to create small programs called applets –Applets can be delivered over the Web and run on any platform

UNIVERSITI TENAGA NASIONAL “Generates Professionals” C# Microsoft’s answer to Java Has the same advantages over C++ that Java has Designed to work within Microsoft’s.NET environment –.NET is designed for building, deploying, and running Web-based applications

UNIVERSITI TENAGA NASIONAL “Generates Professionals” Visual Basic Previous versions supported some object technology The current version, VB.NET, is the first to support inheritance and polymorphism –These two traits are required for a true object- oriented language