Thread: i had a homework assignment from C, program to simulate a coin-tossing game

  1. #1
    Registered User
    Join Date
    Dec 2020
    Posts
    1

    Unhappy i had a homework assignment from C, program to simulate a coin-tossing game

    Create a program to simulate a coin-tossing game. Use the standard random number generator function rand(), to produce integer values ​​1 and 0 with the formula: rand ()% 2
    Suppose that “header” is represented by 1 and “tile” is 0. Run your program for 100, 1000, and 10000 throws and note the longest faces and the longest alternating faces and backs, which is 101010...
    Arrange your program in the form of the required functions and provide a prototype of the required functions in a header file. help

  2. #2
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,739
    What do you need help with exactly?
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Coin counting program in c
    By vag3621 in forum C Programming
    Replies: 3
    Last Post: 11-08-2012, 06:19 AM
  2. Need Help on Coin Toss Program
    By Blazefury5 in forum C++ Programming
    Replies: 11
    Last Post: 04-12-2011, 12:32 PM
  3. Coin Counting Program
    By woodyhavoc in forum C Programming
    Replies: 8
    Last Post: 03-14-2011, 02:15 AM
  4. Help coin program.
    By Kinto in forum C++ Programming
    Replies: 1
    Last Post: 09-12-2009, 08:00 PM
  5. coin change program??
    By kelly in forum C++ Programming
    Replies: 3
    Last Post: 03-24-2002, 08:57 PM

Tags for this Thread