VB Beginner Needs Help with Homework

VB Beginner Needs Help with Homework

Post by age.. » Sun, 06 Jun 1999 04:00:00



 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.

 
 
 

1. need help with homework project!

[ trans.txt < 1K ]
yes, oui, ja
table, table, tisch
the, la, dem
is, est, ist
yellow, jaune, gelb
friend, ami, freund
sick, malade, krank
my, mon, mein
large, gros, gross
no, non, nein
hat, chapeau, hut
pencil, crayon, bleistift
red, rouge, rot
on, sur, auf
auto, auto, auto
often, souvent, oft

2. help

3. Beginner vb 6 needs help

4. US-MO-DBA NEEDED IN ST. LOUIS

5. Need help, homework question.

6. Conditional Query Problems

7. reply to VB Beginner needs help

8. Binary Compatibility

9. VB beginner needs some help

10. Complete beginner needs help w/ VB and Access

11. Newbie needs help w/homework - VisData

12. VB Beginner needs HELP!

13. Error Event (DataGrid Control) -- VB beginner needs help