Xcellerator wrote:hmm... My school just open SIMS .net app on the desktop, then type in a user and password then fiddle around trying to figure out how get to their classroom... We'll have to do what FreelanceX did with the RM Fake Logon Screen with SIMS .net...
Could be valuable, I however cannot code anything other than basic html (and I mean really basic html) and some pretty advanced batch files...I must learn C++ some time...
TJ_2k7 wrote:ohai there.
'method
Sub GetPennies(ByVal ammount As Double)
Dim Money(,) As Double = {{50.0, 0}, {20.0, 0}, {10.0, 0}, {5.0, 0}, {2.0, 0}, {1.0, 0}, {0.5, 0}, {0.2, 0}, {0.1, 0}, {0.05, 0}, {0.02, 0}, {0.01, 0}}
For i As Integer = 0 To 11
Do
If Money(i, 0) > ammount Then
Exit Do
Else
ammount = ammount - Money(i, 0)
Money(i, 1) += 1
ammount = Math.Round(ammount, 2)
End If
Loop
Next
Console.WriteLine()
For i As Integer = 0 To 11
If Money(i, 1) > 0 Then Console.WriteLine(Money(i, 1) & " count(s) of £" & Money(i, 0))
Next
End SubReturn to RM Community Connect
Users browsing this forum: No registered users and 3 guests