Identify object-oriented programming languages. A computer program is a series of instructions that direct a computer to perform specific tasks. A programming.

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

Computers Are Your Future
CS105 INTRODUCTION TO COMPUTER CONCEPTS INTRO TO PROGRAMMING Instructor: Cuong (Charlie) Pham.
Introducing Programming a general discussion. What is a Program? Sets of instructions that get the computer to do something Programs may be a few lines.
Programming Creating programs that run on your PC
Computer Concepts 5th Edition Parsons/Oja Page 546 CHAPTER 11 Software Engineering Section A PARSONS/OJA Computer Programming.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
Programming Introduction November 9 Unit 7. What is Programming? Besides being a huge industry? Programming is the process used to write computer programs.
Discovering Computers 2008 Chapter 13 Programming Languages and Program Development.
Development of Computer - Story of Steve. What is a computer A high intelligence machine A tool – make our life much convenient A very loyal servant Pretty.
© Prentice Hall CHAPTER 3 Computer Software.
1 An Introduction to Visual Basic Objectives Explain the history of programming languages Define the terminology used in object-oriented programming.
Your Interactive Guide to the Digital World Discovering Computers 2012.
© Paradigm Publishing Inc Chapter 12 Programming Concepts and Languages.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
Chapter 11 Information System Development and Programming Languages.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
Chapter 13 Programming Languages and Program Development.
Chapter 13 Programming Languages and Program Development 1.
Discovering Computers 2009 CSC 1100 Computer Literacy Dr. Carlos E. Otero Introduction to Computer Programming.
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
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.
A First Program Using C#
Overview-An Overview of Visual Basic.NET1 An Overview of Visual Basic.NET.
Introduction to Computer Programming itc-314
Introduction to Programming Language CS105 Programming Language First-generation: Machine language Second-generation: Assembly language Third-generation:
Software – Applications software and programming languages
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
Microsoft Visual Basic 2005: Reloaded Second Edition
UNIVERSITI TENAGA NASIONAL “Generates Professionals” CHAPTER 4 : Part 2 INTRODUCTION TO SOFTWARE DEVELOPMENT: PROGRAMMING & LANGUAGES.
High level & Low level language High level programming languages are more structured, are closer to spoken language and are more intuitive than low level.
COMPUTER PROGRAMMING Source: Computing Concepts (the I-series) by Haag, Cummings, and Rhea, McGraw-Hill/Irwin, 2002.
CHAPTER FOUR COMPUTER SOFTWARE.
Copyright©2008 N.AlJaffan®KSU1 Chapter 11 Information system development and programming language.
An Introduction to Programming with C++ Sixth Edition
CS101 Introduction to Computing Lecture Programming Languages.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
Chapter 15 Program Development and Programming Languages.
Software – Applications software and programming languages.
Chapt. 10. What’s a Program? A set of instructions -- that lead to the accomplishment of an objective.
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.
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.
Chapter 13 Programming Languages and Program Development.
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.
PROGRAMMING LANGUAGES
Software Development Programming & Languages. Programming: A Five-Step Procedure Define the problem Design a solution Code the program Test the program.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
Overview.ppt Overview-An Overview of Visual Basic.NET An Overview of Visual Basic.NET.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Software: Systems and Applications Software. The Importance of Software in Business time 1950today $ Software Hardware High Low.
Slide 8-1 Chapter 8 Terms Programming Languages Introduction to Information Systems Judith C. Simon.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
GROUP 2 NAME :  AZMYLL BIN ARSHAD  (18DNS14F2014)  MARYAM JAMILAH BINTI RAHIM  (18ENS14F2004)  SURAYA BINTI MOHAMAD  (18DNS14F2005)  MUHAMMAD SALEH.
Chapter 1: Introduction to Computers and Programming.
Your Interactive Guide to the Digital World Discovering Computers 2012 Chapter 13 Computer Programs and Programming Languages.
IS220 Computer Programming
Objectives Overview Differentiate between machine and assembly languages Identify and discuss the purpose of procedural programming languages, and describe.
Chapter 4 Computer Software.
Chapter 12 Programming Concepts and Languages.
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
and Program Development
ICT Programming Lesson 1:
Presentation transcript:

Identify object-oriented programming languages

A computer program is a series of instructions that direct a computer to perform specific tasks. A programming language is a set of words, symbols, and codes that enable a programmer to instruct the computer to perform a set of tasks. Programming languages are either low-level or high-level. Computer Programs

Low-level Programming Languages  Machine Language - a first generation computer language  Assembly Language – a second generation computer language

Machine language uses a series of binary digits (1s and 0s), or combinations of numbers and letters that represent binary digits, and is the only language a computer directly understands. Machine Language (First Generation Language) E030B2 010B B B F27330D62C81010D800C A4F5030D6010D8 0000A0F27530D62C7B010D800C7D 0000A44F7030D6010D8 0000AE A0104C 0000B21C B E B858E030B2010B4 0000BC07FE

Assembly language uses symbolic instruction codes. Symbolic instruction codes are meaningful abbreviations & codes in which “A” might stand for addition, “C” might stand for compare, or “M” might stand for multiply. Assembly languages also use symbolic addresses to identify storage locations. For example, RATE might refer to a storage location that contains the pay rate being used in the program. This language is slightly more user friendly than machine language. Assembly Language (Second Generation Language) CALCPAYEQU* ST14,SAVERTPY SR4.4 SR7.7 SR5.5 PACKDOUBLE,RTHRSIN CVB4.DOUBLE ST7.RATE

High-Level Languages (Procedural Programming Languages) With a procedural language, or third-generation language (3GL), programmers write instructions using code that is very similar to the English language, which simplifies the program development process. For example, ADD stands for addition and PRINT means to print. Arithmetic operations are represented by + for addition, - for subtraction, / for division, and * for multiplication. *COMPUTE REGULAR TIME PAY MULTIPLY REGULAR-TIME HOURS BY HOUR-RATE GIVING REGULAR-TIME-PAY *COMPUTER OVERTIME PAY IF OVERTIME-HOURS >0 COMPUTER OVERTIME-PAY = OVERTIME-HOURS * 1.5 * HOUR RATE ELSE MOVE 0 TO OVERTIME PAY

Popular Standard procedural languages are: BASIC—a simple, interactive problem-solving language COBOL—a language designed for business applications C—a powerful language that requires professional programming skills High-Level Languages (Procedural Programming Languages)

Below is an example of code written in BASIC: High-Level Languages (BASIC) Sample 1: Unstructured original BASIC (Applesoft BASIC) Sample 2: Modern Structured BASIC (e.g. QBASIC)

An example of code written in COBOL. COBOL stands for Common Business Oriented Language High-Level Languages (COBOL)

Below is an example of code written in “C”: High-Level Languages (C) /* Computer Regular Time Pay*/ rt_pay – rt_hrs * pay_rate; /* Computer Overtime Pay*/ if (ot_hrs > 0) ot_pay – ot_hrs * 1.5 * pay_rate; else ot_pay = 0; /* Compute Gross Pay*/ Gross – rt_pay * ot_pay; /* Print Gross Pay*/ Printf(“The gross pay is %d\n”. gross):

A tcompiler or an interpreter ranslates the 3GL source program into a machine language object code that a computer can execute. An interpreted program runs each line of code individually and translates it into machine language while it is executing the program. A compiled program is run through a compilation process that converts the entire program from the source code into machine code. Compiled programs run much faster than interpreted programs and are usually identified by the filename extension of.exe. Compiling or Interpreting Computer Code

Visual programming languages are sometimes called fifth-generation languages (5GL) and provide a visual or graphical interface, called a visual programming environment (VPE) for creating source code. Visual Programming

Visual programming languages are often used in a rapid application development (RAD) environment. RAD allows programmers to implement a program in segments and use pre-built components which simplify program development. Visual Programming Rapid Application Development (RAD) An example of RAD would be the icons shown on the above desktop and folder. The icon of the diskdrive representing the computer drives is used in several places – but the same routine is used to create all of them.

Visual programming languages include: Visual Basic.NET 2003 Visual C++.NET 2003 Visual C#.NET 2003 Delphi PowerBuilder Visual Programming This is an example of a Visual Basic 6.0 environment used to create a program in Visual Basic.

Characteristics of Object-Oriented Programming Languages Programmers use an object-oriented programming (OOP) language to implement object-oriented design. An object is an item that can contain both data and the procedures that read or manipulate the data. A major benefit of OOP is its ability to reuse and modify existing objects, which allows programmers to create applications faster. OOP languages include C++, which is an object-oriented extension of the C programming language, and Java, which is similar to C++ but uses a just-in-time (JIT) compiler to convert its source code into machine code.

On the right is the HTML code that produced the webpage shown on the left. Examine the code and see if you can determine what some of it does. See if you can explain what the code in red does. Web Page Written in HTML DogieO's Homepage DoggieO's Home Page Hello, my name is DoggieO. I enjoy all aspects of life, especially chasing other animals. I am a freshman at Cannine High School where I am on the Fetch Team. Below are my favoriate links. Petsmart where I get my food and toys. Google Search Engine where I get all my information.

On the right is the Java code that makes the buttons on the left page change color. When the user “mouse-overs” the button, it switches the graphic which represents the button so that the button appears to change colors or “light up” showing it is active. Below are the two buttons that switch in and out of the page as a result of the Java script code below. Web Page Written in Java Pop Activities Page script LANGUAGE="JavaScript"><!-- if (navigator.userAgent.indexOf("Mozilla") != -1) { if (parseInt(navigator.appVersion) > 2) BrowserOK = 1; else BrowserOK = 0; } function highlight(img) { if (BrowserOK == 0) return; document[img].src = img + "G.jpg"; } function unhighlight(img) { if (BrowserOK == 0) return; document[img].src = img + "S.JPG"; } // -->

As you can see, we have many languages. Below are just a few. Languages are improved upon or new languages are developed as we find new applications and uses for computers.

Although we have many languages, they all share common elements; so it is easy to learn and program in other languages once you are exposed to writing code for one program language.