# Trying to make a Team sports scored calculator

Page 1 of 1

## 3 Replies - 3330 Views - Last Post: 01 June 2018 - 08:05 AMRate Topic: //<![CDATA[ rating = new ipb.rating( 'topic_rate_', { url: 'https://www.dreamincode.net/forums/index.php?app=forums&module=ajax&section=topics&do=rateTopic&t=411085&amp;s=adc4d3faff443b7a010c74c204c33a15&md5check=' + ipb.vars['secure_hash'], cur_rating: 0, rated: 0, allow_rate: 0, multi_rate: 1, show_rate_text: true } ); //]]>

### #1 JayTee3

Reputation: 0
• 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

Reputation: 0
• 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.

### #3 modi123_1

• Suitor #2

Reputation: 14685
• Posts: 58,688
• 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.

### #4 maj3091

• D.I.C Lover

Reputation: 331
• 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.