Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Comparison of OO with other.

Slides:



Advertisements
Similar presentations
An Introduction to Programming General Concepts. What is a program? A program is an algorithm expressed in a programming language. programming language.
Advertisements

Chapter 8 Advanced SQL Pearson Education © Chapter 8 - Objectives u How to use the SQL programming language u How to use SQL cursors u How to create.
Structures. Procedural (Imperative) Languages Procedural languages work on the basis of explicitly telling the computer ‘how to do something’; by using.
Software Development Languages and Environments. Programming languages High level languages are problem orientated contain many English words are easier.
Programming Languages and Paradigms
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Implementation and Testing.
Programming with Objects: Class Libraries and Reusable Code.
High-Level Programming Languages
Chapter 8 High-Level Programming Languages Nell Dale John Lewis.
11/1/06 1 Hofstra University, CSC005 Chapter 8 (Part 3) High Level Programming Languages.
An Introduction to Programming with C++ Fifth Edition Chapter 1 An Introduction to Programming.
Chapter 1 Program Design
Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.
Unit Six Assignment 1 Chris Boardley.
Programming Paradigms Imperative programming Functional programming Logic programming Event-driven programming Object-oriented programming A programming.
Python quick start guide
Software Development Chapter 3 Software Development Languages & Environments.
Programming Languages CPS120: Introduction to Computer Science Lecture 5.
Programming Languages and Paradigms Object-Oriented Programming.
Languages and Environments Higher Computing Unit 2 – Software Development.
School of Computing and Mathematics, University of Huddersfield Computing Science: WEEK 17 Announcement: next few weeks… 9 nd Feb: Comparative Programming.
1 Software Development Topic 2 Software Development Languages and Environments.
Chapter 8 High-Level Programming Languages (modified by Erin Chambers)
MT311 Java Application Development and Programming Languages Li Tak Sing( 李德成 )
สาขาวิชาเทคโนโลยี สารสนเทศ คณะเทคโนโลยีสารสนเทศ และการสื่อสาร.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Higher Grade Computing Studies 2. Languages and Environments Higher Computing Software Development S. McCrossan 1 Classification of Languages 1. Procedural.
AS Computing Introduction to Programming. What is a Computer Program? A list of instructions that a computer must work through, in a logical sequence,
Mr C Johnston ICT Teacher BTEC IT Unit 06 - Lesson 01 Introduction to Computer Programming.
1 2. Program Construction in Java Programming Fundamentals.
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
8 1 Chapter 8 Advanced SQL Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Applications Development
Getting started with Programming using IDE. JAVA JAVA IS A PROGRAMMING LANGUAGE AND A PLATFORM. IT CAN BE USED TO DELIVER AND RUN HIGHLY INTERACTIVE DYNAMIC.
I Power Higher Computing Software Development Development Languages and Environments.
I Power Higher Computing Software Development High Level Language Constructs.
8-1 Compilers Compiler A program that translates a high-level language program into machine code High-level languages provide a richer set of instructions.
Chapter 8 High-Level Programming Languages. 2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Choosing the write programming language for the job. The choice of language may be based on: The experience and expertise of the development team. The.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Programming and Languages Dept. of Computer and Information Science IUPUI.
JavaScript 101 Introduction to Programming. Topics What is programming? The common elements found in most programming languages Introduction to JavaScript.
Compilers and Interpreters
Software Design and Development Languages and Environments Computing Science.
OCR A Level F453: High level languages Programming techniques a. identify a variety of programming paradigms (low-level, object- oriented,
Code Generation Instruction Selection Higher level instruction -> Low level instruction Register Allocation Which register to assign to hold which items?
Collision Theory and Logic
High and low level languages
Names and Attributes Names are a key programming language feature
Component 1.6.
Understand the Fundamentals of Classes
Collision Theory and Logic
Key Ideas from day 1 slides
Nick Sims Scripting Languages.
CS101 Introduction to Computing Lecture 19 Programming Languages
Henning Schulzrinne Advanced Programming
Developing Applications
Computer Programming.
VISUAL BASIC.
Binding Times Binding is an association between two things Examples:
High Level Programming Languages
Computer Science Core Concepts
A programming language
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
IPC144 Introduction to Programming Using C Week 4 – Lesson 1
Tonga Institute of Higher Education IT 141: Information Systems
An Introduction to Programming with C++ Fifth Edition
Tonga Institute of Higher Education IT 141: Information Systems
design OO words Debug Variables Data types
Presentation transcript:

Alford Academy Business Education and Computing1 Advanced Higher Computing Based on Heriot-Watt University Scholar Materials Comparison of OO with other languages

Alford Academy Business Education and Computing2 Lesson Objectives Comparison of OO with Other Languages

Alford Academy Business Education and Computing 3 Procedural Languages Main Program Subprogram ASubprogram BSubprogram C Program is a collection of blocks or modules of code The modules (or procedures) process data (parameters) Procedures have a defined sequence of instructions and these are executed until the program ends

Alford Academy Business Education and Computing 4 Similarities and Differences with OO Object Oriented Procedural 1. Have control structures for iteration and selection 2. Change values of variables through assignment 3. Problem specific Modules are free standing and can be separately compiled Modules are methods that are part of a class Data and code are separate Data and code (methods) are not separate and are encapsulated into an object

Alford Academy Business Education and Computing 5 Declarative Languages With this type of language the computer is treated not as a machine that processes data but as a machine that can perform logic Programmer declares facts and relationships between items planet(saturn,large,900,atmosphere,rings,19). SCHOLAR Page 64

Alford Academy Business Education and Computing 6 Similarities and Differences with OO Object Oriented Declarative 1. Prolog operates on a database – some argue that this is the same with OO where searching is part of the object No rigid control structures such as loops, if then else Variables can be reassigned Data structures are dynamic ie only exists at run time Instantiation means to create a new object Variables are type free – ie can represent number, string, lists Instantiation is an instruction to give a variable a value

Alford Academy Business Education and Computing 7 Event Driven Languages In event driven environments the user executes what is known as an event procedure such as clicking a mouse or hitting a key to run part of the code They do not have a set sequence of instructions to execute Event driven programming and object oriented programming are inextricable linked to GUI systems Languages such as Java and Visual Basic provide support for event- driven programming through the use of objects, classes and methods

Alford Academy Business Education and Computing 8 Low Level Languages 1. Are machine dependent 2. Are difficult to program and debug 4. Demand a large expense of time on the part of the programmer 3. Are not compiled or interpreted 5. Contain no high level constructs 6. Execute extremely fast 7. Produce lines of code that have a 1:1 relationship with machine instructions

Alford Academy Business Education and Computing 9 Activities Read Scholar pp Answer all Review question Homework – Complete class work