Simtoon
2011-02-04 07:38:13
IM SO STUCK PLEASE HELP :D
I have to make a ATM System i have eveything worked out but i cant seem to get the withdrawing right..
I need something to be able to withdraw money out of an atm.. Withdrawing only 50 and 20 dollar notes..
It needs to work out how many 50 and 20 notes it needs give to the person..
I did that in vb, which didnt work well
Can anyone help me, any language is fine
I have to make a ATM System i have eveything worked out but i cant seem to get the withdrawing right..
I need something to be able to withdraw money out of an atm.. Withdrawing only 50 and 20 dollar notes..
It needs to work out how many 50 and 20 notes it needs give to the person..
Dim temp = TextBox1.Text
Dim a50 As Integer = 0
Dim a20 As Integer = 0
While temp >= 50
temp -= 50
a50 += 1
End While
While temp >= 20
temp -= 20
a20 += 1
End WhileI did that in vb, which didnt work well
Can anyone help me, any language is fine