Log in

View Full Version : A simple calculation program


panderso
Apr 21, 2008, 02:32 PM
I have to work out a simple program in visual basic, it is based on a football season containing 10 games. I have to give 3 points per win 1 point per draw and 0 point per loss.
I then have to display total points after I have put in the ten games i.e 2 wins 5 draws 3 lose =11 points. Any help with this would be very welcome.
Thanks very much
Paul:)

ratu
Apr 22, 2008, 11:23 AM
I think it goes like this.

'First you have to check, if its win, loses or draw.

If rbtwinChecked.True(let say u use radiobutton) Then
total=total+3
ElseIf rbtdrawChecked.True Then
total=total + 1
Else
total=total

'Then display the total
lblDisplay.Text=total