Download presentation
Presentation is loading. Please wait.
Published byThomasine Garrison Modified over 8 years ago
1
© Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu Stefano Grazioli
2
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
3
© Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu Jobs and tools
6
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
7
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
8
understand & communicate reengineer & change specify software WE WILL USE IT TO DESCRIBE (HOME)WORK TO BE DONE.
9
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
10
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
11
© Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu H3
12
Ask for the interest rate (e.g., “5” means five percent). Allow for fractions, as in 4.725. 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
13
Interest = Principal * [(1+ Interest Rate) t – 1] "Principal" is the same as "capital" pay attention to the unit of measure!
14
© Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu What Is New In Technology?
15
© Stefano Grazioli - Ask for permission for using/quoting: grazioli@virginia.edu Introduction to Visual Basic
16
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
17
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
18
Recognize the patterns & follow the examples
19
... 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”...
20
cr. rate > 50% If creditRate > 0.5 Then Range("A10").Value = "Approved!" End If Print “Approved”...
21
AND : if (creditRate > 0.5 ) And (age > 21) OR : if (creditRate 21) NOT : if Not (age = 21) alternatively you can use If age <> 21
22
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
23
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
24
interest = Principal * [(1+ Interest Rate) t – 1] 1. interest = principal * ((1 + interestRate) ^ t) - 1) 2. interest = principal * (Application.WorksheetFunction.Power((1 + interestRate), t)-1)
25
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
26
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
27
Be careful about uploading Google is your friend Come and see me.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.