Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Visual Basic (https://www.askmehelpdesk.com/forumdisplay.php?f=469)
-   -   A simple calculation program (https://www.askmehelpdesk.com/showthread.php?t=208200)

  • Apr 21, 2008, 02:32 PM
    panderso
    a simple calculation program
    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:)
  • Apr 22, 2008, 11:23 AM
    ratu
    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

  • All times are GMT -7. The time now is 08:36 PM.