Hello I just started taking a VB course at college, and I'm having
trouble figuring out this problem.
The problem is to create a Football Scoreboard.
This application records the points scored in a football game. When a
team scores, the user first clicks the scoring category (Touchdown, 1
Extra Point, 2 Extra Points, Field Goal, or Safety) and then the team
that scored (Home or Visitor.) When the team (Home or Visitor) is
clicked, the value of the score previously clicked is added to that
team's total. When Game Over is clicked, an appropriate message box is
displayed : " Hooray for the Home Team!" if the home team won,
and "Boo! We lost." if the visiting team won, and "Let's Play sudden
death!" if the game ended in a tie.
The names of all controls should be changed to reflect the type of
purpose of each : cmdHome, cmdVisitors, lblHome, lblVisitors,
cmdTouchdown, cmd1Extra, cmd2Extra, cmdFieldGoal, cmdSafety, and cmd
Game Over.
Touchdown = 6
OneExtraPoint = 1
Two Extra Points = 2
FieldGoal = 3
Safety = 2
Also, declare a form-level variable, mnscore, as a temporary storage
area to hold the value of the score to be added.
At runtime, when the user clicks a scoring category, assign the
appropiate constant to mnScore. Then, when the user clicks the team
(Home or Visitor,) add mnScore to that team's total, and assign 0 to
mnScore.
When the user clicks Game Over, use If/Then statements to display the
appropriate message box, and then end the program.
I have included a zip file that contains the VB file of the layout for
this problem. Please help me, because I am totally lost.
Thank you so much for your time!
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.