functions - return a value, which we can use
x = Int(2.6)
y = Int(7.6) + 6
Public Class Form1
Function Foo() As String
Dim x As Integer
x = 7
Return "Hello"
End Function
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim s As String
s = Foo()
Button1.Text = s
End Sub
End Class
y = f(x)
money today is worth more than money a year from now
FV = PV * (1+RATE)^NPER
but can compount mult times per year. need divide by freq
HW: Chapter 4 Programming Projects
1-4
No comments:
Post a Comment