Software design and development Marcus Hunt. Application and limits of procedural programming Procedural programming is a powerful language, typically.

Slides:



Advertisements
Similar presentations
GCSE Computing Lesson 5.
Advertisements

Roles of Variables with Examples in Scratch
Programming Paradigms and languages
CS0007: Introduction to Computer Programming Console Output, Variables, Literals, and Introduction to Type.
 Computer hardware components are the physical pieces of the computer.  The major hardware components of a computer are: – The central processing.
Bellevue University CIS 205: Introduction to Programming Using C++ Lecture 3: Primitive Data Types.
CIS 234: Using Data in Java Thanks to Dr. Ralph D. Westfall.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. COMPSCI 125 Introduction to Computer Science I.
Copyright © 2012 Pearson Education, Inc. Chapter 1: Introduction to Computers and Programming.
8 November Forms and JavaScript. Types of Inputs Radio Buttons (select one of a list) Checkbox (select as many as wanted) Text inputs (user types text)
Introduction to a Programming Environment
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to Python Programming Outline 2.1 Introduction 2.2 First Program in Python: Printing.
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.
Adding Automated Functionality to Office Applications.
Software Design & Development Software Design & Development Programming Types Event Driven Programming Event driven programming Is a type of programming.
Unit Six Assignment 1 Chris Boardley.
Describe the application and limits of procedural, object orientated and event driven 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.
Why Program? Computer – programmable machine designed to follow instructions Program – instructions in computer memory to make it do something Programmer.
Chapter Introduction to Computers and Programming 1.
01- Intro-Java-part1 1 Introduction to Java, and DrJava Barb Ericson Georgia Institute of Technology June 2008.
© Janice Regan, CMPT 128, Jan CMPT 128: Introduction to Computing Science for Engineering Students Integer Data representation Addition and Multiplication.
Unit 20: Event Driven Programming
Introduction to Python
Programming. What is a Program ? Sets of instructions that get the computer to do something Instructions are translated, eventually, to machine language.
Chapter 1: Introduction to Computers and Programming.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 1: Introduction to Computers and Programming.
Georgia Institute of Technology Introduction to Java, and DrJava Barb Ericson Georgia Institute of Technology Aug 2005.
Event Driven Programming
IT253: Computer Organization Lecture 4: Instruction Set Architecture Tonga Institute of Higher Education.
National Diploma Unit 4 Introduction to Software Development Data types, variables and constants.
1 Overview of Programming and Problem Solving Chapter 1.
National Diploma Unit 4 Introduction to Software Development Introduction to Programming Languages.
Applications Development
Task 1-Language Choice By Joshua Wild.
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.
Programming in C++ Dale/Weems/Headington Chapter 1 Overview of Programming and Problem Solving.
School of Computer Science & Information Technology G6DICP - Lecture 4 Variables, data types & decision making.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Data Tonga Institute of Higher Education. Variables Programs need to remember values.  Example: A program that keeps track of sales needs to remember.
Programming Paradigms By Tyler Smith. Event Driven Event driven paradigm means that the program executes code in reaction to events. The limitation of.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
1 Writing Software Kashef Mughal. 2 Algorithms  The term algorithm (pronounced AL-go-rith-um) is a procedure or formula for solving a problem.  An Algorithm.
CPS120: Introduction to Computer Science Variables and Constants.
Procedural programming Procedural programming is where you specify the steps required. You do this by making the program in steps. Procedural programming.
National Diploma Unit 4 Introduction to Software Development Procedures and Functions.
Review A program is… a set of instructions that tell a computer what to do. Programs can also be called… software. Hardware refers to… the physical components.
Visual Basic/ Visual Studio Brandon Large. Connecting to prior knowledge In your notes write down what the two main parts of the computer are. The “software”
HIGH-LEVEL LANGUAGE PROGRAMMING PARADIGMS. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
Collision Theory and Logic
Unit 2 Technology Systems
Object-Orientated Programming
COMPUTATIONAL CONSTRUCTS
Introduction to Programming and Visual Basic
Topics Introduction Hardware and Software How Computers Store Data
Collision Theory and Logic
Computer 4 JEOPARDY Bobbie, Sandy, Trudy.
Unit 20: Event Driven Programming
Choice of Programming Language
Introduction to Python
Event Driven Programming
Topics Introduction Hardware and Software How Computers Store Data
Fundamentals of Data Structures
Coding Concepts (Basics)
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
ICT Gaming Lesson 2.
Introduction to Java, and DrJava
Presentation transcript:

Software design and development Marcus Hunt

Application and limits of procedural programming Procedural programming is a powerful language, typically it has used for complex programs like scientific and engineering systems. Procedural languages are languages like: C, C++ and Pascal. When making large systems using procedural programming there is a risk of the code becoming confusing as more features are added to it. Procedural programming typically runs through a series of instructions in a step by step method. The code used in procedural programming will only be relevant to the problem you are trying to solve, this means that it would likely be difficult to reuse code. This is especially true when you may use new, efficient code. It would take a while to convert it without nothing breaking.

Application and limits of object oriented programming Object oriented programs are typically much easier to make than procedural ones. Object oriented languages include: Visual basic, C++ and Java. Using OOP to make something such as a calculator is much easier since everything is treated as an object. Because of this it makes teaching a user new to programming much easier. The objects usually interact with other objects to design applications and computer programs. Each object can receive messages, process data and send messages to other objects in the program. An object can be data, this can be anything from: Numbers, strings or variables.

Application and limits of event driven programming Event driven programming allows programs to respond to inputs such as a mouse click by the user. The different environments come with everything you need to make a GUI application, all a user needs to do is supply the code. The event driven paradigm is determined by the actions of the user and what they do with the program. Event driven programming can also respond to events happening within the computer, this can be something such as a process using too much RAM, a programmer could respond to this by writing something in an EDP language which forces the process to close. A limit of EDP is that if you have a lot of handlers listening for events it can use up a lot of CPU cycles which can slow the computer down.

Factors influencing choice of programming language There can be a few factors when deciding on a language for a project. It needs to be suitable for the task, if the program needs to work on multiple operating systems then you wouldn't choose something like Visual Basic. Something like C++ or Java is better suited but also more difficult to code in. Obviously your own personal ability is vital when choosing a language, most programmers won't choose a language which they aren't comfortable, it will probably lead to the application taking twice as long to develop. The language also needs to be reliable and rock solid. Languages such as C have been around a long time and you know that in a critical situation it isn't going to have any quirks that can lead to a system crash. If multiple people are going to be looking at and modifying the source then it is important that they are able to understand, use of a high level language such as python can do this as it is fairly easy to read and understand.

Sequence, selection and iteration as used in programming Sequence: Sequence is the order in which an application will execute its code. In the case of procedural programming it will probably be line one, two, three etc. Selection: Selection is based on using booleans. This allows you to have branches in your program which would change how the program is run. Iteration: Iteration means to do something multiple times, this is normally either a fixed number of times or until a specified criteria is met.

Benefits of having a variety of data types There are many different types of data, these can vary from: Strings, integers, bytes, booleans, floating point and date. Strings are a sequence of characters which are either constant or a variable. Integers are able to hold 32 bit signed integers, it provides the best performance on a 32 bit processor. Booleans usually have two values, either true or false. Use of booleans can select pieces of code depending if the condition is met. Floating points have two different data types. Singles need 4 bytes of memory and doubles need 8, the singles can store significantly less than the doubles. A byte holds eight bits, the bits can either be 0 or 1. The numbers can be 0 to 255. The data types that store date are 64 bit integers that represent Jan. 1st to Dec. 31st. It can also change format depending on where you live.