Hey guys, I am new to vb and need some help with this change program. The idea is that we are given a certain amoun of change and then telling how many dollars, quarters, dimes, nickles and pennies. I thought I would convert the decimal to an integer and then use a while loop for every text box, i.e. dollars, quarters, dimes, etc.., to show how many of each, but the while loop is confusing for me in vb, but to tell you the truth I don't know if I am on the right track, can you help?
Public Class Form1
Private Sub btnCalculate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculate.Click
Dim getChange As Decimal = txtStart.Text
Dim intGetChange As Integer = Convert.ToInt32(getChange)
While intGetChange > 100
intGetChange(-100)
End While
Dim showDollars As Integer = intGetChange
Dim showQuarters As Integer = txtQuarters.Text
Dim showDimes As Integer = txtDimes.Text
Dim showNickles As Integer = txtNickles.Text
Dim showPennies As Integer = txtPennies.Text
End Sub
End Class