General discussion

Locked

Coin Toss

By tony3198 ·
I need a simple program in VB for game that simulates a coin toss. Each coin toss should print heads or tails at random. The program should loop 100 times, keeping count of the results. The program should call a seperate function that takes no arguments an returns 0 for Tails and 1 for heads.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Coin Toss

by TimTheToolMan In reply to Coin Toss

Ha!

It sounds like you might need this for a school assignment. You'll never learn unless you write it yourself!

If not, then explain why and we'll provide. Its is a simple program - exactly the kind of "first assignment" one might get from school...

Cheers,
Tim.

Collapse -

Coin Toss

by tony3198 In reply to Coin Toss

Poster rated this answer

Collapse -

Coin Toss

by Just_Me_Johnny In reply to Coin Toss

Must be for school. This is a very basic program. Just try!

Collapse -

Coin Toss

by tony3198 In reply to Coin Toss

Poster rated this answer

Collapse -

Coin Toss

by hijukal In reply to Coin Toss

I agree with the other two opinions...

Just don't forget to use "Randomize"!

Collapse -

Coin Toss

by tony3198 In reply to Coin Toss

Poster rated this answer

Collapse -

Coin Toss

by tony3198 In reply to Coin Toss

This question was closed by the author

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums