Software Engineering Principles Dr. José M. Reyes Álamo.

Slides:



Advertisements
Similar presentations
Understanding an Apps Architecture ASFA Computer Science: Principles Fall 2013.
Advertisements

Eric Gallery Manuel Mendez David A. Turner Arturo I Concepcion.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
CS 101 Introductory Programming - Lecture 7: Loops In C & Good Coding Practices Presenter: Ankur Chattopadhyay.
Selection (decision) control structure Learning objective
Chapter 1 - An Introduction to Computers and Problem Solving
 Control structures  Algorithm & flowchart  If statements  While statements.
靜宜大學資管系 楊子青 1 Programming Your App’s Memory 靜宜大學資管系 楊子青
Programming with Alice Computing Institute for K-12 Teachers Summer 2011 Workshop.
1 CSE1301 Computer Programming: Lecture 23 Algorithm Design (Part 1)
CIS101 Introduction to Computing Week 11. Agenda Your questions Copy and Paste Assignment Practice Test JavaScript: Functions and Selection Lesson 06,
Tutorial 4 Decision Making with Control Structures and Statements Section A - Decision Making JavaScript Tutorial 4 -Decision Making with Control.
Visual C++ Programming: Concepts and Projects
CIS101 Introduction to Computing Week 12 Spring 2004.
Introduction to AppInventor Dr. José M. Reyes Álamo.
Fundamentals of Python: From First Programs Through Data Structures
V Avon High School Tech Club Agenda Old Business –Delete Files New Business –Week 16 Topics: Intro to HTML/CSS –Questions? Tech Club Forums.
EMT1111 Logic and Problem Solving Dr. José M. Reyes Álamo Lecture 1.
EMT1111 Logic and Problem Solving Fall 2012 Dr. José M. Reyes Álamo Lecture 1.
EMT1111 Logic and Problem Solving Dr. José M. Reyes Álamo Lecture 1.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
Nonvisual Arrays and Recursion by Chris Brown under Prof. Susan Rodger Duke University June 2012.
EMT1111 Logic and Problem Solving Dr. José M. Reyes Álamo Lecture 1.
Chapter 4 Selection Structures: Making Decisions.
Variables, operators, canvas, and multimedia Dr. José M. Reyes Álamo.
Loops, Databases, Procedures, and Lists Dr. José M. Reyes Álamo.
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,
Functions, Procedures, and Abstraction Dr. José M. Reyes Álamo.
PHP Constructs Advance Database Management Systems Lab no.3.
Chapter 3 - Structured Program Development Outline 3.1Introduction 3.2Algorithms 3.3Pseudocode 3.4Control Structures 3.5The If Selection Structure 3.6The.
Conditional Expression One of the most useful tools for processing information in an event procedure is a conditional expression. A conditional expression.
JavaScript, Fourth Edition
MIT App Inventor Lesson 4 – Decision Making. Agenda Comparisons ◦ Relational Operators Conditions (state checking) ◦ Boolean Operators.
Lecture 2 Conditional Statement. chcslonline.org Conditional Statements in PHP Conditional Statements are used for decision making. Different actions.
Variables, operators, canvas, and multimedia Dr. José M. Reyes Álamo.
CIS 3301 C# Lesson 3 Control Statements - Selection.
Advanced Multimedia Development (AMMD) ::: Review – past few weeks Flash ActionScript Conditional Statements Loops Variable Type Conversion Logical.
GUI For Computer Architecture May01-05 Team Members: Neil HansenCprE Ben JonesCprE Jon MathewsCprE Sergey SannikovCprE Clients/Advisors: Manimaran Govindarasu.
Basic Conditions. Challenge: ● Ask the user his/her name ● If it’s “Wally,” jeer him ● Pause video and try on your own.
Week 4 Program Control Structure
CompSci 4 Chap 6 Sec 2 Sep 30, 2010 Prof. Susan Rodger “All your troubles are due to those ‘ifs’,” declared the Wizard. If you were not a Flutterbudget.
Beginning C For Engineers Fall 2005 Lecture 3: While loops, For loops, Nested loops, and Multiple Selection Section 2 – 9/14/05 Section 4 – 9/15/05 Bettina.
Control structures in C by Dr P.Padmanabham Professor (CSE)&Director Bharat Institute of Engineering &Technology Hyderabad Mobile
CS122 – Quiz 2 Winter, 2013 Quiz Hints. Quiz 2 Hints Question 1 – working with the “if” statement  First, we did not fully explain the structure of the.
Control Flow (Python) Dr. José M. Reyes Álamo. 2 Control Flow Sequential statements Decision statements Repetition statements (loops)
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
Microsoft® Small Basic Conditions and Loops Estimated time to complete this lesson: 2 hours.
Variables, operators, canvas, and multimedia Dr. Reyes.
Introduction to Logic and Conditional Block Dr. José M. Reyes Álamo.
Control Flow (Python) Dr. José M. Reyes Álamo. 2 Control Flow Sequential statements Decision statements Repetition statements (loops)
Conditional Statements A conditional statement lets us choose which statement will be executed next Conditional statements give us the power to make basic.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
Control Flow (Python) Dr. José M. Reyes Álamo.
Collision Theory and Logic
Collision Theory and Logic
CiS 260: App Dev I Chapter 4: Control Structures II.
Microsoft Visual Basic 2005 BASICS
Loops, Databases, Procedures, and Lists
Variables, operators, canvas, and multimedia
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Structured Program
3 Control Statements:.
Java Programming Control Structures Part 1
ICT Programming Lesson 3:
Introduction to AppInventor
Programming Concepts and Database
CS2011 Introduction to Programming I Selections (I)
Using Decision Structures
Software Engineering and Animations
Presentation transcript:

Software Engineering Principles Dr. José M. Reyes Álamo

2 Outline Software engineering principles If and If/else statement

Software Engineering Principles

4 Involve your prospective users in the process as early and as often as possible.

5 Build an initial, simpler prototype and then add to it incrementally

6 Code and test in small increments—never more than a few blocks at a time.

7 Design the logic for your app before beginning to code

8 Divide and conquer.

9 Comment your source code or blocks so you can easily remember and others can understand them.

10 Learn to trace blocks manually so that you understand how they work.

Logic Control if – if-else statement

12 An App is a Set of Event-Handlers Mobile and web apps have graphical user interfaces (GUIs) with which the user interacts. Such apps are better described as a set of event-handlers, with multiple recipes that are only performed in response to some event.

13 An App Consists of Event-Handlers That Can Ask Questions and Branch Many responses to events are not sequential, but contain branches and loops. The app is allowed to ask questions and determine its course based on the answers. We say that such apps have conditional branches: Conditions are questions such as “has the score reached 100?” or “did the text I just receive is from Joe?” Depending on the condition evaluation (true or false) either B1 or B2 are going to be executed, but not both.

14 If and ifelse statement Test statement If test statement is TRUE, then do the following… If test statement is TRUE, then do the following.. If test statement is FALSE, then do the following… If test statement is FALSE, skip the if statement

15 Conditions are Boolean Conditions are Boolean, meaning they return true or false. They test the value of properties and variables using the following logical operators: These operators can be found in the Math and Logic drawers.

16 Algorithm – Pseudo Code // Use if statement to check the default size. defaultSize = 5; smallSize = 3; bigSize = 8; If defaultSize 3 Display in LabelResult = The dot size is set to default; end

17 Some examples

18 OpenLab and Blackboard Check OpenLab for any new lab. Check Blackboard for any new quiz. Project: –Brainstorm an idea –Get professor's approval –Post your idea in your portfolio –Must work in teams of 2 or 3 –It must be an app and the topic is open: a game, a tool, an enhanced version of a previous app