Paper Details  
 
   

Has Bibliography
7 Pages
1752 Words

 
   
   
    Filter Topics  
 
     
   
 

Do cats cause bad luck

programming language for Macintosh computers. The random number, between 0 and 1, is calculated by factors including the date and time. The program's main loop appears below. The first line of the program states that the program runs 50 times, to simulate 50 coin tosses. The computer requests that the user enter "h" or "t", as in "tails" or "heads" in a coin toss. Then a random number between 0 and 1 is picked. If the number is greater than one half (.5) then it counts as tails. If the number is less than one half it counts as tails. The computer compares the user's guess to its random choice. If the user was right then the computer adds 1 to its tally of correct scores. After 50 coin tosses the computer prints out the final percentage correct. Each person was tested 5 times and the results averaged, to minimize statistical errors. The situation of the actual path-cross was a hallway with 2 doorways on opposite sides. As the subject walked down the hallway the cat ran out of one doorway and into the other. The above diagram is a floor plan of the area in which the test subject encountered a cat. The human began on the left. As he walked down the hall, the cat was released in alcove A. The cat walked or ran across the human's path. The cat then proceeded into alcove B across the hall. The human continued to the computer room C. The subject then ran the luck program. The program was run 5 times immediately. The results were entered into a series of charts. Luck For Subject Alone is a chart of the subject's luck when his path was not crossed by any cats. Luck for White Cat is a chart of when the subject's path was crossed by a white cat. Luck for Black Cat is a graph of the subject's luck when his path was crossed by a black cat. The lower line in each chart is the lowest percentage that a subject received. The upper line is the highest percentage that the subject received. The center line is the actual percentage of coin flips correct. Th...

< Prev Page 3 of 7 Next >

    More on Do cats cause bad luck...

    Loading...
 
Copyright © 1999 - 2024 CollegeTermPapers.com. All Rights Reserved. DMCA