© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli.

Slides:



Advertisements
Similar presentations
 Computer Science 1MD3 Introduction to Programming Winter 2014.
Advertisements

Chapter 3 IFTHENELSE Control Structure © 2008 Pearson Education Inc., Upper Saddle River, NJ. All rights reserved. Marilyn Bohl/Maria Rynn Tools for Structured.
 Control structures  Algorithm & flowchart  If statements  While statements.
Introduction to C Programming
 2005 Pearson Education, Inc. All rights reserved Introduction.
Programming Logic and Design Fourth Edition, Introductory
Introduction to BizAgi. Slide 2 User Interface (Summary) The user interface for BizAgi resembles Office It uses a similar ribbon The Palette contains.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 4 – Introducing Algorithms, Pseudocode and.
Introduction to Computing Dr. Nadeem A Khan. Lecture 4.
Understanding the Mainline Logical Flow Through a Program (continued)
1 10/25/06CS150 Introduction to Computer Science 1 Reading from and Writing to Files.
SE-565 Software System Requirements More UML Diagrams.
Financial Information Management Managing Financial Information Critical Thinking Business Process Modeling WINIT Control Structures Homework.
The University of Texas – Pan American
CIS Computer Programming Logic
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 Microsoft Office Excel Copyright © 2008 Pearson Prentice Hall. All rights reserved
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 6 Value- Returning Functions and Modules.
Chapter 4: The Selection Process in Visual Basic.
© Copyright 1992–2005 by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. Tutorial 4 – Wage Calculator Application: Introducing.
CSE 102 Introduction to Computer Engineering What is an Algorithm?
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Property of Jack Wilson, Cerritos College1 CIS Computer Programming Logic Programming Concepts Overview prepared by Jack Wilson Cerritos College.
Tutorial 51 Programming Structures Sequence - program instructions are processed, one after another, in the order in which they appear in the program Selection.
Activity diagrams. Introduction ● Activity diagrams are a behavioural model that represent the dynamics of the system. ● An activity diagram is essentially.
Visual Basic Programming
Lab 4 Range Review, Control Logic and Loops ► Range Review ► Control Logic and Loops ► Exercise.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Class Average Application Introducing the Do...Loop While and Do...Loop Until.
©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Selection Statements Selection Switch Conditional.
Algorithm Design.
Advanced Computer Science Lesson 4: Reviewing Loops and Arrays Reading User Input.
22/11/ Selection If selection construct.
© Stefano Grazioli - Ask for permission for using/quoting:
Object Oriented Analysis & Design & UML (Unified Modeling Language)1 Part VI: Design Continuous Activity Diagams State Diagrams.
Algorithm Discovery and Design Objectives: Interpret pseudocode Write pseudocode, using the three types of operations: * sequential (steps in order written)
 2002 Prentice Hall. All rights reserved. 1 Chapter 5 – Control Structures: Part 2 Outline 5.1Introduction 5.2 Essentials of Counter-Controlled Repetition.
 2003 Prentice Hall, Inc. All rights reserved. 1 Basic C++ Programming.
Financial Information Management VB, VBA, VS, VSTO & VBE: Putting it all together Source: Excel VBA Programming by John Walkenbach.
© Stefano Grazioli - Ask for permission for using/quoting: Source: Excel VBA Programming by John Walkenbach.
FILES AND EXCEPTIONS Topics Introduction to File Input and Output Using Loops to Process Files Processing Records Exceptions.
Input, Output and Variables GCSE Computer Science – Python.
Business rules.
Introduction to Programming Lecture 2
Development Environment
CST 1101 Problem Solving Using Computers
A variable is a name for a value stored in memory.
Introduction to Programming / chapter 3 / COM1022
Introducing Instructions
System Design.
Using EDpuzzle: Teacher and Student Guide
Organization of Programming Languages
Procedures Stefano Grazioli.
ALGORITHMS AND FLOWCHARTS
Pseudocode An Introduction
Unified Modeling Language
Java Programming Arrays
ALGORITHMS AND FLOWCHARTS
If selection construct
Loops CIS 40 – Introduction to Programming in Python
Design and Implementation
If selection construct
CSCI 3327 Visual Basic Chapter 6: Methods: A Deeper Look
Process Automation: From models to code
Loops, Subs, & Functions Stefano Grazioli.
Suppose I want to add all the even integers from 1 to 100 (inclusive)
Topics Introduction to Value-returning Functions: Generating Random Numbers Writing Your Own Value-Returning Functions The math Module Storing Functions.
Language Constructs Construct means to build or put together. Language constructs refers to those parts which make up a high level programming language.
Loops, Subs, & Functions Stefano Grazioli.
Process Automation: focus on imagination and modeling
Process Automation: focus on imagination and modeling
COMPUTING.
Presentation transcript:

© Stefano Grazioli - Ask for permission for using/quoting: Stefano Grazioli

 Missing files / other zip issues  Videos are guides, not to be copied exactly! Focus on functionality. Does your app do what is required?  Grade fairness is important to me: come and see me  Two freebies  Helping others  EasyMeter

© Stefano Grazioli - Ask for permission for using/quoting: Jobs and tools

Identify the requirements (what needs to be done) Create a description of the financial Business Process Implement the BP using IT Business Analyst / Consultant Technical Analyst / Consultant Developer / Consultant

Use Case Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Use Case Diagrams Scenario Diagrams Scenario Diagrams Scenario Diagrams Scenario Diagrams Deployment Diagrams Deployment Diagrams State Diagrams State Diagrams State Diagrams State Diagrams Sequence Diagrams Sequence Diagrams Component Diagrams Component Diagrams Component Diagrams Component Diagrams Collaboration Diagrams Collaboration Diagrams State Diagrams State Diagrams State Diagrams State Diagrams Package Diagrams Package Diagrams Scenario Diagrams Scenario Diagrams Scenario Diagrams Scenario Diagrams Component Diagrams Component Diagrams Use Case Diagrams Diagrams Diagrams Diagrams ActivityDiagramsActivityDiagrams State Diagrams State Diagrams State Diagrams State Diagrams Class Diagrams Class Diagrams Scenario Diagrams Scenario Diagrams Scenario Diagrams Scenario Diagrams Statechart Diagrams Statechart Diagrams International standard: diagramming techniques to describe processes

 understand & communicate  reengineer & change  specify software  WE WILL USE IT TO DESCRIBE (HOME)WORK TO BE DONE.

Receive goods [OK] Inspect content Return some goods Pay vendor Accept all goods Receive returns Notify Vendor and A/P Update A/R Reconcile Account [Errors] [Returned goods] VENDORA/P RECEIVING Update A/P Starting point Activity Decision Point End point [Guard] Model guards only if they add value Swimlane Fork Join Actor Merge

 A join  A join has a single exit point, that is traversed when all the input activities have occurred.  A merge  A merge (same symbol than the decision point) has a single exit and is traversed when any one of the input activities occurs.  A fork  A fork has one entry point and multiple exits to activities that can be done in parallel

© Stefano Grazioli - Ask for permission for using/quoting: H3

Ask for the interest rate (e.g., “5” means five percent). Allow for fractions, as in Ask for the principal in $ Ask for the number of years (1-30) Ask the user whether he/she wants to see (a) the interest, (b) the sum of principal + interest, or (c) both a and b (default). More than $0 Less or equal 0 or more than 10 Less than 1 or more than 30 Ask for more? (y=yes) Print Output abanything else y For this assignment assume a “competent” user

Interest = Principal * [(1+ Interest Rate) t – 1] "Principal" is the same as "capital" pay attention to the unit of measure!

© Stefano Grazioli - Ask for permission for using/quoting: What Is New In Technology?

© Stefano Grazioli - Ask for permission for using/quoting: Introduction to Visual Basic

are named places in memory where you store information. To create a variable, you declare it (Dim) and you tell the computer what type of info you want to store in it (e.g., an integer, a double, a string, a range). Dim myInterest as double = 0 Dim userInput as string = “Stefano”  To change its content, you use the assignment operator “=” myInterest = 0.05  To use its value, you just write its name Dim newVariable as double = 0 newVariable = myInterest * 2

 Are objects with properties and behaviors.  No need to pre-specify what kind of info you want to store in them.  Examples: Range("A1").Value = “My Excellent Calculator” Range("A1").Font.Bold = True Range("A1").ColumnWidth = 30 Range("A3").Value = "Interest is" Range("B3").Columns.NumberFormat = "$#,##0.00_);[Red]($#,##0.00)" Range("B3").Value = interest

Recognize the patterns & follow the examples

... creditRate > 50% Dim creditRate as Double ‘ More instructions… If creditRate > 0.5 Then Range("A10").Value = "Approved!" Else Range("A10").Value = "Rejected" End If Print “Approved” Print “Rejected”...

cr. rate > 50% If creditRate > 0.5 Then Range("A10").Value = "Approved!" End If Print “Approved”...

AND : if (creditRate > 0.5 ) And (age > 21) OR : if (creditRate 21) NOT : if Not (age = 21) alternatively you can use If age <> 21

Dim inputFromUser As String Do inputFromUser = InputBox(“Amount of principal?") principal = Double.Parse(inputFromUser) Loop While principal <= 0 Ask the user the amount of principal in $ Principal <= $0

Ask the user the amount of principal in $ Less than / equal to $0 Do ‘ Task A Do inputFromUser = InputBox(“Principal?") principal=double.Parse(inputFromUser) Loop While (inputFromUser <= 0) ‘ Task B inputFromUser = InputBox(“Want to quit?") Loop While (inputFromUser <> “y”) Task B want to quit (n=no)? n Task A y

interest = Principal * [(1+ Interest Rate) t – 1] 1. interest = principal * ((1 + interestRate) ^ t) - 1) 2. interest = principal * (Application.WorksheetFunction.Power((1 + interestRate), t)-1)

Select Case textFromUser Case “a” Range(“B5").Value = “This is case a" ’ More instructions… Case “b” Range(“B5").Value = “This is case b" ‘ More instructions… Case Else Range(“B5").Value = “this is the Default“ ‘ More instructions… End Select Ask the user Print Output a b default

Dim number As Integer ‘other code in here... Select Case number Case 1 To 5 Range("A1").Value("Between 1 and 5, inclusive") Case 6, 7, 8 Range("A1").Value("Between 6 and 8, inclusive") Case 9 To 10 Range("A1").Value("Equal to 9 or 10") Case Else Range("A1").Value("Not between 1 and 10, inclusive") End Select Source: MSDN

 Be careful about uploading  Google is your friend  Come and see me.