3 Replies - 3498 Views - Last Post: 01 June 2018 - 08:05 AM Rate Topic: -----

#1 JayTee3   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 17-May 18

Trying to make a Team sports scored calculator

Posted 17 May 2018 - 05:32 PM

I'm just not sure how to do it.

Team Points Scored Calculator: This calculates the total points scored by each team in a game. The
goals/runs etc. are to be inputted by the Coach (User) and the program will calculate the Total Points
scored for each team and determine the Winner of the match. In the case of both teams scoring the
same total, a Draw shall be declared.

Yes this is homework and I know you guys won't do it, but I want to know how do I start? What do I do? I'm so stressed and confused and near breaking down. Am I supposed to put the score in the textboxes and then press a final button which decides the winner? I don't even know how to get it to tell the winner, I know I can make the labels "Team 1 wins" "Draw" "Team 2 wins" But i have no idea how to make them come back if someone wins and shit... I don't understand anything...

Thanks if anyone can point me in the right direction.

Is This A Good Question/Topic? 0
  • +

Replies To: Trying to make a Team sports scored calculator

#2 JayTee3   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 23
  • Joined: 17-May 18

Re: Trying to make a Team sports scored calculator

Posted 17 May 2018 - 06:02 PM

Nevermind I think I got it, my code seems to work but sometimes it says team 1 is the winner when they aren't, but thats only rarely and I don't know why.
Was This Post Helpful? 0
  • +
  • -

#3 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 15172
  • View blog
  • Posts: 60,735
  • Joined: 12-June 08

Re: Trying to make a Team sports scored calculator

Posted 17 May 2018 - 06:54 PM

See what repeatable steps you can take to reproduce the problem.
Throw in a few breakpoints and walk through the code to see what's up.
Without seeing it all that's about the best advice to offer.
Was This Post Helpful? 0
  • +
  • -

#4 maj3091   User is offline

  • D.I.C Lover
  • member icon

Reputation: 331
  • View blog
  • Posts: 2,005
  • Joined: 26-March 09

Re: Trying to make a Team sports scored calculator

Posted 01 June 2018 - 08:05 AM

Well done for having a go at this yourself.

You're right that no-one will do the work for you, but if you can post the code (using code tags as shown in the background of the reply window), then it will enable people to provide you with pointers in the right direction.
Was This Post Helpful? 1
  • +
  • -

Page 1 of 1