Higher Computing Software Development -So Far- 5/10/10.

Slides:



Advertisements
Similar presentations
Chapter 4: Control Structures I (Selection)
Advertisements

Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
While loops.
CS0004: Introduction to Programming Repetition – Do Loops.
Visual Basic.NET BASICS Lesson 10 Do Loops. 2 Objectives Explain what a loop is. Use the Do While and Do Until loops. Use the InputBox function. Use the.
IS437: Fall 2004 Instructor: Dr. Boris Jukic Program Flow Control: Decisions and Conditions (Branching) Controlled Repetition (Looping)
Do/Loops A loop repeats a series of instructions. An iteration is a single execution of the statement(s) in the loop. Used when the exact number of iterations.
Copyright © 2012 Pearson Education, Inc. Chapter 6 More Conditionals and Loops Java Software Solutions Foundations of Program Design Seventh Edition John.
Do Loops A Do..Loop terminates based on a condition that is specified Execution of a Do..Loop continues while a condition is True or until a condition.
Program Design and Development
Control Structures: Part 2. Introduction Essentials of Counter-Controlled Repetition For / Next Repetition Structure Examples Using the For / Next Structure.
Loops – While, Do, For Repetition Statements Introduction to Arrays
BACS 287 Programming Fundamentals 4. BACS 287 Programming Fundamentals This lecture introduces the following iteration control structure topics: – Do.
16/27/ :53 PM6/27/ :53 PM6/27/ :53 PMLogic Control Structures Arithmetic Expressions Used to do arithmetic. Operations consist of +,
Loops Repetition Statements. Repetition statements allow us to execute a statement multiple times Often they are referred to as loops Like conditional.
© 2004 Pearson Addison-Wesley. All rights reserved5-1 Iterations/ Loops The while Statement Other Repetition Statements.
ECE122 L9: While loops March 1, 2007 ECE 122 Engineering Problem Solving with Java Lecture 9 While Loops.
Fundamentals of Python: From First Programs Through Data Structures
Created By Mayson Al-Duwais1. Using Exit to Terminate Repetition Statements To terminate different types of repetition statements you can use a special.
Fundamentals of Python: First Programs
Visual Basic: An Object Oriented Approach 5: Structured Programming.
110-K1 Iterations (1) Up to now, need to call the procedure again (e.g. click again on a command button) To repeat a piece of code: Can also use loops:
Decision Structures and Boolean Logic
ENGR 112 Decision Structures.
Types and Loops.
I Power Int 2 Computing Software Development High Level Language Constructs.
CSCI 3327 Visual Basic Chapter 4: Control Statements in Visual Basic (Part 2) UTPA – Fall 2011 Part of the slides is from Dr. John Abraham’s previous.
Copyright © 2009 Pearson Education, Inc. Publishing as Pearson Addison-Wesley STARTING OUT WITH Python Python First Edition by Tony Gaddis Chapter 4 Decision.
SDP The Software development process. SDP The Software development process Analysis.
COMPUTER PROGRAMMING I 5.05 Apply Looping Structures.
CSC 162 Visual Basic I Programming. Repetition Structures Pretest Loop –Exit condition is tested before the body of code is executed Posttest Loop –Exit.
Copyright © 2012 Pearson Education, Inc. Chapter 6 More Conditionals and Loops Java Software Solutions Foundations of Program Design Seventh Edition John.
CS285 Visual Basic 2 Department of Computing UniS 1 Statements in Visual Basic A statement is the fundamental syntactical element of a program smallest.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #5: Programming Structures IE 212: Computational Methods for Industrial Engineering.
I Power Higher Computing Software Development High Level Language Constructs.
Introduction to Problem Solving and Control Statements.
Chapter 5: Control Structures: Iteration Visual Basic.NET Programming: From Problem Analysis to Program Design.
Intermediate 2 Computing Unit 2 - Software Development.
2016 N5 Prelim Revision. HTML Absolute/Relative addressing in HTML.
Chapter 6 Looping Structures. Do…LoopDo…Loop Statement Can operate statements repetitively Do intx=intx + 1 Loop While intx < 10 –The Loop While operates.
CECS 5020 Computers in Education Visual Basic Variables and Constants.
Controlling Program Flow with Looping Structures
5.1 Introduction Problem Solving –Requires understanding of: Building blocks Program-construction principles BZUPAGES.COM.
Clearly Visual Basic: Programming with Visual Basic 2008 Chapter 14 Do It, Then Ask Permission.
Higher Computing Science 2016 Prelim Revision. Topics to revise Computational Constructs parameter passing (value and reference, formal and actual) sub-programs/routines,
COMP Loop Statements Yi Hong May 21, 2015.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
 2002 Prentice Hall. All rights reserved. 1 Chapter 5 – Control Structures: Part 2 Outline 5.1Introduction 5.2 Essentials of Counter-Controlled Repetition.
CSCI 3327 Visual Basic Chapter 4: Control Statements in Visual Basic (Part 2B) UTPA – Fall 2011 Part of the slides is from Dr. John Abraham’s previous.
Repetition Statements b Repetition statements allow us to execute a statement multiple times repetitively b They are often simply referred to as loops.
Chapter 6 Controlling Program Flow with Looping Structures.
Identify the Appropriate Method for Handling Repetition
UNIT 5 Lesson 15 Looping.
Chapter 3: Decisions and Loops
Visual Basic 6 (VB6) Data Types, And Operators
Control Structures: Part 2
3rd prep. – 2nd Term MOE Book Questions.
Expressions and Control Flow in JavaScript
3rd prep. – 2nd Term MOE Book Questions.
Outline Altering flow of control Boolean expressions
Chapter (3) - Looping Questions.
Do … Loop Until (condition is true)
Introduction to Problem Solving and Control Statements
Three Special Structures – Case, Do While, and Do Until
ICT Programming Lesson 3:
Case & Repetitive Statements
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Prepared By: Deborah Becker
Presentation transcript:

Higher Computing Software Development -So Far- 5/10/10

ADITDEM Analysis – Program Specification Design – Pseduocode, Top down design, Bottom up Implementation – Visual Basic, Scratch Testing – Normal, Extreme & Exceptional Documentation – User guide, Technical guide Evaluation – Robust……….. Maintenance – Perfective, Corrective……

String Handling Concatenation – Joining strings together & Left, right, mid, Len function vbCrLf – new line on a string

Variables String – Text, numbers not used for calculation Numeric –Integer – whole numbers –Single – Real numbers –Boolean – true/false Array – a list of any data type Variant – data type that is not defined, its is created “on the fly” by VB Option Explicit – Gets rid of variant data types DIM – set up a variable

Selection Simple – IF with one comparator Complex – IF with more than one comparator and logic operator Else and ELIF – allows for changes in comparison SELECT CASE – Simplifies IF..ELIF..ELSE

Unconditional Loops Iteration (repetition) that happens a specific number of times. Nesting for loops For Length = 1 to 10 For Breadth = 1 to 10 Area = length * breadth Next

Conditional Loops Do...Loop Until –Loops until a condition is met –Must be executed at least once! –Condition is checked at the bottom Do While…Loop –Loops while condition is true –May never be executed if condition is false –Condition is checked at the top