Decision Tables.

Slides:



Advertisements
Similar presentations
Selection Statements Make a decision based on conditions Allows the computer to be intelligent.
Advertisements

If Statements, Try Catch and Validation. The main statement used in C# for making decisions depending on different conditions is called the If statement.
Logic Circuits Design presented by Amr Al-Awamry
SOFTWARE TESTING. INTRODUCTION  Software Testing is the process of executing a program or system with the intent of finding errors.  It involves any.
Control Structures Control structures are used to manage the order in which statements in computer programs will be executed Three different approaches.
Student Governance Office 365 Pilot Overview Solicited ~2700 volunteers by invitation Ended up with 129 participants Pilot started April.
Sequential Design Part II. Output A(t+1) =D A = AX + BX B(t+1) =D B = AX Y = AX + BX.
Finite state machines.
Contacts. Stored in the Contact folder Stores information about businesses or people –Address, phone number, address etc.
An Introduction to Programming with C++ Fifth Edition Chapter 5 The Selection Structure.
Introduction to Computers and Programming Lecture 6 Professor: Evan Korth New York University.
If Statements Sections 1.25, Control Structures o All code thus far executes every line of code sequentially o We want to be able to repeat,
- Part 2 Your teachers are :. Review 1.Did you do your homework? Was it difficult, easy, or just right? 2.Turn to your partner and tell them your.
Oakkar Fall The Need for Decision Engine Automate business processes Implement complex business decision logic Separation of rules and process Business.
Anya Brookman. How to create a new message Unwanted messages Folders Messages you have sent to someone Logging out when you have finished sending.
Chapter 4: Basic C Operators
Introduction to . Overview  Setting up an account  Sending s  Receiving s  Folders.
COE 202: Digital Logic Design Combinational Circuits Part 3 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office: Ahmad Almulhem, KFUPM.
The KS3 online test -The software. - You must be really familiar with this application to show what you can do! In the test all the detailed.
Python – Making Decisions Lecture 02. Control Structures A program that only has one flow is useful but limited. We can use if statements to make these.
9/4/01Mary Price ( )1 ELECTRONIC MAIL. 9/4/01Mary Price ( )2 Electronic Mail ( ) A facility which allows text messages and computer files.
Flowcharts! January 13, 2005 These are today’s notes! Do you think we will get more snow?
CMSC 104, Version 8/061L11Relational&LogicalOps.ppt Relational and Logical Operators Topics Relational Operators and Expressions The if Statement The if-else.
PAGES:51-59 SECTION: CONTROL1 : DECISIONS Decisions.
Basics.
This is your Template Tool Across the top is your menu bar To the left is where you fill out a template to send To the right is a live preview.
1 CSC103: Introduction to Computer and Programming Lecture No 7.
Logical controllers' programming 2- Programming To program means to order with clarity a group of instructions that step by step they execute operations..
Jordan Howell Frank Geiger. Table of Contents  Question  Overview of example  Packets  OSI Model  Network Layer  Data Link Layer  Physical Layer.
PSEUDOCODE C Programming Technique – Firdaus-Harun.com.
Group 6. What is data redundancy? Data redundancy occurs in database systems which have a field that is repeated in two or more tables... Data redundancy.
Conditions in Java. First…Boolean Operators A boolean data type is always true or false. Boolean operators always return true or false For example: (x.
Branches and Program Design
LOGO Conditional Statements & Loops in JavaScript CHAPTER 10 Eastern Mediterranean University School of Computing and Technology Department of Information.
Selection Relational Expressions A condition or logical expression is an expression that can only take the values true or false. A.
11 Project 2 Towers of Hanoi. 22 Towers of Hanoi is a well known puzzle that can be very difficult to solve manually but can be programmed very easily.
`. Lecture Overview Structure Programming Basic Control of Structure Programming Selection Logical Operations Iteration Flowchart.
Lesson 2 . Objectives Describe Understand how to send, reply, and forward Define and send attachments.
CS 240 – Computer Programming I Lab Kalpa Gunaratna –
CSC 2720 Building Web Applications Basic Frameworks for Building Dynamic Web Sites / Web Applications.
booleans hold a true/false value We take advantage of this by using them to decide which route our program will take. Examples: stinky holds the boolean.
1 Conditional Statements + Loops ผศ. ดร. อนันต์ ผลเพิ่ม Anan Phonphoem
CMSC 104, Version 9/011 Relational and Logical Operators Topics Relational Operators and Expressions The if Statement The if-else Statement Nesting of.
AMPscript Overview Fundamental Concepts for Using AMPscript in HTML with ExactTarget.
IST 210: PHP LOGIC IST 210: Organization of Data IST210 1.
AP Computer Science A – Healdsburg High School 1 Unit 7 - Conditional statements - Logical operators in Java - Example.
Setting up a One Drive Network Drive. Step 1- Account Creation Go to: /en-us/ /en-us/
Everyone else gets the non-flighted packages Known customers specified by Microsoft account address Customers who have opted-in to an app beta.
 Very often when you write code, you want to perform different actions for different decisions. You can use conditional statements in your code to do.
Decision Tables and Pseudocode
How to students in your class using Owl Link Updated
Decision making If.. else statement.
CHAPTER 4 DECISIONS & LOOPS
Networking Devices.
Chapter 11 Describing Process Specifications and Structured Decisions
- Standard C Statements
Sequence, Selection, Iteration The IF Statement
Comparison Operators Relational Operators.
The Selection Structure
Chapter 4: Control Structures
An Introduction to Programming with C++ Fifth Edition
DESICION TABLE Decision tables are precise and compact way to model complicated logic. Decision table is useful when input and output data can be.
Decision making If statement.
Intro to Programming CURIE 2011.
An Introduction to Linux
s.
CHAPTER 5: Control Flow Tools (if statement)
Overview Functional Testing Boundary Value Testing (BVT)
Dale Roberts, Lecturer IUPUI
Lesson 3. Controlling program flow. Loops. Methods. Arrays.
Presentation transcript:

Decision Tables

Lesson Objectives Understand how to model complicated logic using a logic table Determine logical conditions and consequential actions.

An overview Decision tables are a precise yet compact way to model complicated logic. Just like IF-else statements Decision tables link conditions with actions The advantage of decision tables is that we can join many separate conditions with several actions

An Example Take the following bit of code IF X is greater than 6 n Y is less than 7 Then Output “Pass” Else Output “Fail” Conditions X > 6 Y N Y < 7 Actions Output “Pass” X Output “Fail”

Why have them? Decision tables make it easier to observe that all possible conditions are accounted for. Decision tables can be used for: Specifying complex program logic Generating test cases (Also known as logic-based testing)

Have a go Complete a decision table for the following logic If X is greater than 6 and Y is less than 7 or Z is equal to 3 Then Output “Pass” Else Output “Fail”

Have another go! Create a decision table for the following program in an office email system Send email when Recipient address present, subject present, before 5:30pm If after 5:30pm then put in pending folder If Recipient address missing or subject message, give warning message