home *** CD-ROM | disk | FTP | other *** search
Turbo Pascal Compiled 8bit CP/M-80 COM | 1986-02-10 | 10.0 KB | 52 lines |
- Copyright (C) 1984 BORLAND Inc
- Pseudo TeleVideo 910P
- C0000
- ^#V#N#F
- s#r#q#p
- #^#V
- 9^#Vh&
- |/g}/o#
- T]=o`9y
- T9^K#
- 8/<oz
- T9^K#
- oGOW_g
- `1pF,
- w###6
- ##N#F*
- Nw#Fw
- q#p#6
- #w#w#w
- TRUEFALSE
- N#F#s#r
- N#F#^#V
- " C}=(
- F+N+++V+^
- q#p##
- User break
- Run-time
- error
- , PC=
- Program aborted
- MThis is a program to calculate the probabilities in "The Collectors Problem."
- MThe question posed is the following: given so many different items in a set,
- Iwhat is the probability of getting a complete set having acquired a given
- Lnumber of items? The assumption is that the items are randomly acquired and
- Ethe identity of each item is independent of the previous acquisition.
- MPlease give the name of a file to record the results; you may print the file.
- 'What will be the name for this file?
- MThis is a program to calculate the probabilities in "The Collectors Problem."
- MThe question posed is the following: given so many different items in a set,
- Iwhat is the probability of getting a complete set having acquired a given
- Lnumber of items? The assumption is that the items are randomly acquired and
- Ethe identity of each item is independent of the previous acquisition.
- 3 Give number in collection [zero to stop] ----->
- 3 Give maximum number of aquistions ------------>
- FOR: *
- IN COLLECTION, *
- ACQUISITIONS; PROBABILITY =
- FOR: *
- IN COLLECTION, *
- ACQUISITIONS; PROBABILITY =
- ACQUISITIONS; PROBABI
-