Software Design & Development Software Design & Development Programming Types Event Driven Programming Event driven programming Is a type of programming.

Slides:



Advertisements
Similar presentations
Programming Paradigms and languages
Advertisements

CS0007: Introduction to Computer Programming Console Output, Variables, Literals, and Introduction to Type.
The Assembly Language Level
Programming Languages Marjan Sirjani 2 2. Language Design Issues Design to Run efficiently : early languages Easy to write correctly : new languages.
CHAPTER 1: AN OVERVIEW OF COMPUTERS AND LOGIC. Objectives 2  Understand computer components and operations  Describe the steps involved in the programming.
Starting Out with C++, 3 rd Edition 1 Chapter 1. Introduction to Computers and Programming.
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Java Programming, 3e Concepts and Techniques Chapter 5 Arrays, Loops, and Layout Managers Using External Classes.
Program Design and Development
Chapter 1 Program Design
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Software Development Unit 6.
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.
Fundamentals of Python: From First Programs Through Data Structures
Your Interactive Guide to the Digital World Discovering Computers 2012.
Python quick start guide
CSE 341, S. Tanimoto Concepts 1- 1 Programming Language Concepts Formal Syntax Paradigms Data Types Polymorphism.
Fundamentals of Python: First Programs
Chapter 8 High-Level Programming Languages (modified by Erin Chambers)
Imperative Programming
CIS Computer Programming Logic
Study Guide For Test Chapter 5, 6,& 7 Test is Friday, May 15th.
Event Driven Programming
Advanced Programming Collage of Information Technology University of Palestine, Gaza Prepared by: Mahmoud Rafeek Alfarra Lecture 2: Major Concepts of Programming.
Lecture 2 Object Oriented Programming Basics of Java Language MBY.
S2008Final_part1.ppt CS11 Introduction to Programming Final Exam Part 1 S A computer is a mechanical or electrical device which stores, retrieves,
By the end of this session you should be able to...
Chapter 8 High-Level Programming Languages. 8-2 Chapter Goals Describe the translation process and distinguish between assembly, compilation, interpretation,
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
PHP Logic. Review: Variables Variables: a symbol or name that stands for a value – Data types ( Similar to C++ or Java): Int, Float, Boolean, String,
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Intermediate 2 Software Development Process. Software You should already know that any computer system is made up of hardware and software. The term hardware.
Chapter 1 Program design Objectives To describe the steps in the program development process To introduce the current program design methodology To introduce.
Term 2, 2011 Week 1. CONTENTS Problem-solving methodology Programming and scripting languages – Programming languages Programming languages – Scripting.
Prepared by: Elsy Torres Shajida Berry Siobhan Westby.
Visual Basic Programming
CONTENTS Processing structures and commands Control structures – Sequence Sequence – Selection Selection – Iteration Iteration Naming conventions – File.
The Software Development Process
I Power Higher Computing Software Development High Level Language Constructs.
Task 1-Language Choice By Joshua Wild.
Programming Fundamentals. Overview of Previous Lecture Phases of C++ Environment Program statement Vs Preprocessor directive Whitespaces Comments.
Objects – State u There are only two things we can do to an object u Inspect it’s state u Alter it’s state u This is a profound statement! u If you think.
Intermediate 2 Computing Unit 2 - Software Development.
Programming Paradigms By Tyler Smith. Event Driven Event driven paradigm means that the program executes code in reaction to events. The limitation of.
1 Program Development  The creation of software involves four basic activities: establishing the requirements creating a design implementing the code.
CPS120: Introduction to Computer Science Variables and Constants.
INVITATION TO Computer Science 1 11 Chapter 2 The Algorithmic Foundations of Computer Science.
Chapter 3 AS3 Programming. Introduction Algorithms + data structure =programs Why this formula relevant to application programs created in flash? The.
Data Handling in Algorithms. Activity 1 Starter Task: Quickly complete the sheet 5mins!
Programming. In your own words, explain what an algorithm is, and give an example of how people use algorithms every day.
Program Design. Simple Program Design, Fourth Edition Chapter 1 2 Objectives In this chapter you will be able to: Describe the steps in the program development.
Some of the utilities associated with the development of programs. These program development tools allow users to write and construct programs that the.
7 - Programming 7J, K, L, M, N, O – Handling Data.
Unit 2 Technology Systems
Collision Theory and Logic
Chapter 10 Programming Fundamentals with JavaScript
Unit 2 Technology Systems
Collision Theory and Logic
Engineering Innovation Center
Computer Programming.
Chapter 10 Programming Fundamentals with JavaScript
Event Driven Programming
Coding Concepts (Basics)
Database Design Hacettepe University
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
ICT Gaming Lesson 2.
Basic Programming Concepts
Basic Concepts of Algorithm
Presentation transcript:

Software Design & Development Software Design & Development Programming Types Event Driven Programming Event driven programming Is a type of programming that is driven by events, this type of programming is heavily used in the gaming industry due to video games mostly being event driven by the player of the game every action they take causes an event. Describing EDP first you have the event loop that is constantly listening for events or a change which would then lead to a trigger. The trigger then sends to an event handler which finally performs the action. This is a simple way of describing how EDP works. Diagram On Event Driven Programming

Software Design & Development Software Design & Development Programming Types Procedural Programming Procedural programming Is a programming method derived from structured programming. Procedures, specific ways of performing tasks in certain ways or routines. In programming it is basically simple pre-set computational steps to be carried out. They will always perform the task exactly the same as it was programmed to, This is why this form of programming is most useful for applications that require to function in a certain way precisely. Diagram showing an example of procedural programming

Software Design & Development Software Design & Development Programming Types Object Oriented Programming Is a form of programming that shows concepts as objects, they have fields of data (that describe the object) and linked with procedures A.K.A methods. For example we have a program with many different objects that are capable of being interacted with, each object being assigned many tasks to perform in different circumstances. An example object such as a door in a game which is assigned a property of teleporting the player to a specific room.

Software Design & Development Choosing a programming language Here are many factors influencing the choice of a programming language Application Type The type of application can influence the choice of coding language to use. Expandability How easy/practical it is to expand programs, will it take a lot of time to re-code/add on to. Compatibility Is the chosen language ideal and compatible with the system that its intended use is on. Suitability How suitable is the coding language for the application. (a First Person Shooter game may use Event Driven Programming) Financial Costs Licencing fees, cost to use etc. Would it be financially practical to use?

Software Design & Development Choosing a programming language Examples of programming languages DarkBASIC Professional DB Pro is a programming language developed by The Game Creators, It was last updated on 1 June 2011 specifically designed to create 2D and 3D games. It is required that a licence is obtained in order to actually release games created with this coding language. It has BSP level support, bump, sphere, light mapping and pixel shading and vertex shaders. Overall it is a fairly easy program to use for creating basic playable video games.

Software Design & Development Choosing a programming language Examples of programming languages Java Java is a very popular computer programming language developed by Sun Microsystems. This language is used by thousands, the reason this is because a lot of devices already run and support java today thus making it very compatibility friendly. This particular language is class based and object oriented and is designed to have as little implementation dependencies as possible. This language being so compatibility friendly allows develops to “write once, run anywhere. (WORA) Finally this languages code layout is based off of C++.

Software Design & Development Choosing a programming language Examples of programming languages Lua Lua is a lightweight programming language that is Influenced by C++, CLU and Modula. This coding language is designed to allow end users to easily program behaviours into software applications without having to go deep into every detail. Lua is a multi- Paradigm language which means it has various methods in one, (event driven, object oriented etc) it allows programmers to include classes, namespaces and other related features using its single table implementation capabilities. Lua is quite powerful for a fairly simple language overall and is very adaptable to a large range of applications.

Software Design & Development Software Design & Development Sequences, Selections and Iterations in Programming Sequences Sequences, one of the three basic logic structures in programming a sequence structure, an event or action leads to the next instructed action in a predefined order. The sequence can have as many number of actions as you want, but you cannot skip any of the actions in a sequence. When you run the program, It must go through each action in order and is unable to split onto other branches Sequence Visual Example

Software Design & Development Software Design & Development Sequences, Selections and Iterations in Programming Selection Selection also known as a decision, In a selection structure, you can ask a question, whatever the answer results, the program uses one of the two answers, the program would then move onto the next event to process, Common in else, if, when True/false statements. For example If light1 is on then play sound1 else if light2 is on then play sound1. Diagram showing selection visually

Software Design & Development Software Design & Development Sequences, Selections and Iterations in Programming Iteration Iteration is the process of looping a bunch of set commands. Similar to sequences but this can actually loop a sequence if required or instructed to. In an example of this we have a database of 100 people, each entry have a first and last name, if we want to copy each of these from the database to print then the best way to do this is with Iteration. This can be achieved with a for loop statement. Diagram showing iteration visually

Software Design & Development Software Design & Development Data Types in Programming The benefits of having multiple types of data in programming List of Data types: Boolean This type of data typically has 2 values, true and false. Its purpose is to reveal the truth of logic and Boolean algebra. This data type allow other actions to control the flow which depends on whether a coder sets a Boolean condition to evaluate either true or false Integer An integer is basically just a number that can be typed without the need for decimal or a fractional component. This is another common data type in code. Floating-Point Number Describes the way of an approximation of a real number that can describe a large range of values. What this is based off is the fact that a numbers decimal/binary point can float, it can be placed anywhere relative to the important digits of a number. Character A string is a sequence of characters, its elements may be allowed to be modified or length changes or possibly fixed after creation. String A character is basically just a unit of information, numerical digits, alphabetical, alphanumeric etc. Pointer A main Non-composite, this data type in which its value “points” to another value stored elsewhere in the computer memory.

Software Design & Development Software Design & Development Data Types in Programming The benefits of having multiple types of data in programming Benefits of Having different data types. Efficiency The benefits of having different data types can increase efficiency in coding and programming. Each different data type can take up different amounts of space, some more than others. Finding the correct data type for the correct environment is good method in increasing efficiency. Simplification Good use of different data types are useful for simplifying certain parts of code, making it easier for a programmer to go through their work. Every data type works best with certain methods/functions. Stability Using the correct data types for the correct methods and functions decreases the amount of possible bugs that may appear in any piece of coding. Compile time checking could also assist with discovering common coding problems during the compiling process. 06/11/2013Sean Oram12