Spreadsheet-Based Decision Support Systems

Slides:



Advertisements
Similar presentations
Chapter 8: The Solver and Mathematical Programming Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Advertisements

Unit 6 Assignment 2 Chris Boardley.
Object Oriented Programming A programming concept which views programs as objects with properties and ways to manipulate the object and the properties.
Programming in Visual Basic
Chapter 20: Simulation Re-Visited Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
SYSTEM ANALYSIS & DESIGN (DCT 2013)
Chapter 20: Simulation Re-Visited Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Decisions (Conditional Programming) Chapter 5 (Sec. 5.1 & 5.2)
Adding Automated Functionality to Office Applications.
Chapter 9: Simulation Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
1 Spreadsheets SELECTION. 2 Aims  Understand the principles of selection in Excel  Examine the basic IF statement format  Look into Nested IF statements.
Chapter 9 Describing Process Specifications and Structured Decisions
IE 212: Computational Methods for Industrial Engineering
Operations 343 Spreadsheet Modeling Week 15 Quiz Review Homework Review Course Review Lab session.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #4: Working with Variables and User Interfaces IE 212: Computational Methods for Industrial Engineering.
Spreadsheet-Based Decision Support Systems Chapter 22:
Prof. Name Position (123) University Name Chapter 1: Introduction Spreadsheet-Based Decision Support Systems.
Chapter 11: Introduction to the Visual Basic Environment Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
Chapter 1 Introduction to VBA Development in Excel.
Chapter 17: Arrays Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Chapter 19: Solver Re-Visited Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Class 3 Programming in Visual Basic. Class Objectives Learn about input/output Learn about strings Learn about subroutines Learn about arrays Learn about.
Good Programming Practices. 2 home back first prev next last What Will I Learn? List examples of good programming practices Accurately insert comments.
Prof. Name Position (123) University Name Chapter 1: Introduction Spreadsheet-Based Decision Support Systems.
Kruse/Ryba Ch011 Object Oriented Data Structures Programming Principles Introduction Programming Style Coding, Testing, Further Refinement Program Maintenance.
SE: CHAPTER 7 Writing The Program
INTRUDUCTION TO SOFTWARE TESTING TECHNIQUES BY PRADEEP I.
Chapter 19: The Solver Re-Visited Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Controlling Execution Programming Right from the Start with Visual Basic.NET 1/e 8.
Chapter 16: Programming Structures Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Saeed Ghanbartehrani Summer 2015 Lecture Notes #5: Programming Structures IE 212: Computational Methods for Industrial Engineering.
Lab 4 Range Review, Control Logic and Loops ► Range Review ► Control Logic and Loops ► Exercise.
Introduction To Engineering Bike Lab 1 – 4 Report Agenda: Lab Report Format Team Writing Outline Lab 1 Report.
Programming Principles Spreadsheet-Based Decision Support Systems Chapter 24: Aslı Sencer MIS 463.
CSC115 Introduction to Computer Programming Zhen Jiang Dept. of Computer Science West Chester University West Chester, PA 19383
Chapter 16: Programming Structures Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Chapter 11: Introduction to VBA Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Program Style Chapter 22 IB103 Week 12 (part 2). Modularity: the ability to reuse code Encapsulation: hide data access directly but may use methods (the.
Chapter 23: GUI Design Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
Chapter 3 Control Structures. The If…Then Statement The If…Then statement is a Decision statement = that executes a set of statements when a condition.
CHAPTER 9 PART II. MULTIDIMENSIONAL ARRAYS Used to represent tables of values arranged in rows and columns. Table element requires two indexes: row and.
Chapter 2: Excel Basics and Formatting Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University Name.
An Object-Oriented Approach to Programming Logic and Design Chapter 5 Making Decisions.
# 1# 1 Nested If Statements in VBA What is a compound condition that we evaluate? What is a Nested If statement? How do we use ElseIf? CS 105 Spring 2010.
Chapter 3 AS3 Programming. Introduction Algorithms + data structure =programs Why this formula relevant to application programs created in flash? The.
Visual Basic Review LBS 126. VB programming Project Form 1Form 2Form 3 Text boxButton Picture box Objects Text box Button Objects.
ATS Programming Short Course I INTRODUCTORY CONCEPTS Tuesday, Feb 10th, 2009 Introduction to Programming.
Chapter 15: Sub Procedures and Function Procedures Spreadsheet-Based Decision Support Systems Prof. Name Position (123) University.
GoldSim Monthly Webinar Series. Goals  Learn the basics of simple scripts  Learn the basics of the GoldSim Script Element  Not a lesson on numerical.
CSIT 108 Review Visual Basic.NET Programming: From Problem Analysis to Program Design.
Kruse/Ryba Ch011 Object Oriented Data Structures Programming Principles Introduction Programming Style Coding, Testing, Further Refinement Program Maintenance.
Structured Analysis Methods and Tools
Spreadsheet Engineering
2008/09/22: Lecture 6 CMSC 104, Section 0101 John Y. Park
GC211Data Structure Lecture2 Sara Alhajjam.
Spreadsheet-Based Decision Support Systems
EGR 2261 Unit 4 Control Structures I: Selection
Programming Problem steps must be able to be fully & unambiguously described Problem types; Can be clearly described Cannot be clearly described (e.g.
Process Analysis I: Flow Charts, Decision Tables, Decision Trees
CSC115 Introduction to Computer Programming
Chapter 9 Structuring System Requirements: Logic Modeling
Investigating associations between categorical variables
Unit 6 Assignment 2 Chris Boardley.
Combinational Circuits
Java Programming Review 1
Chapter 9 Structuring System Requirements: Logic Modeling
Spreadsheet-Based Decision Support Systems
Excel – VBA – How to use Non-Contiguous range of cells
Controlling Program Flow
Presentation transcript:

Spreadsheet-Based Decision Support Systems Chapter 24: Programming Principles Prof. Name name@email.com Position (123) 456-7890 University Name

Overview 24.1 Programming Practices 24.2 Clarity 24.3 Efficiency 24.4 Summary

Programming Practices We summarize here what we feel are some important issues when coding in VBA for spreadsheet-based DSS development. We categorize these issues as follows: coding with a consistent style; using naming standards; having clear comments; and increasing coding efficiency.

Clarity Consistent Style Naming Documentation

Consistent Style Use a consistent style for formatting, organizing, and commenting your code. Indenting not clear: If A is True Then ‘actions 1 ElseIf B is True Then ‘actions 2 End If Clearer indenting style:

Naming Use naming standards for variables and procedures. “MinVal”, “SumProfit”, “MaxPrice” “FindMinCost”, “GetUserInfo” Naming standards also apply to control names and specific data types, such as Boolean. “IsDone”, “DoAnimation”

Documentation Make comments clear throughout the code. Describe procedure functionality and loop and logical flow.

Efficiency Always look for ways to improve your coding efficiency. Avoid redundancies and unnecessary code. Static structure: For i = 1 to 10 ‘do actions Next i Dynamic structure: For i = 1 to NumProducts

Efficiency (cont) Static structure: Dim CostArray(10) as Double Dynamic structure: Dim CostArray() As Double, CostSize As Integer ReDim CostArray(CostSize) -------------------------------------- ‘paste in output table Range(“A1”).PasteSpecial Dim OutputTable As Range Set OutputTable = Range(“A1”) OutputTable.PasteSpecial

Summary The most important programming principles are writing with a consistent style, using naming standards, including clear comments, and improving code efficiency. It is important to have a clear, readable, and understandable code. Documentation is an important part of any programming project. We accomplish documentation by placing comments throughout our code. We should continuously be working to improve our code by reducing the complexity of the logic and the time required.

Additional Links (place links here) Projectile Simple forms with basic Excel manipulation Birthday Simulation Simple simulation with statistical analysis Portfolio Management and Optimization Using the Solver