Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- The maker of a popular beverage is running a contest in whichyou must collect bottle caps to spell a word.Write a program to simulate the collection of bottle caps to spellapple. In every100caps,AandEoccur40times each, andPandLoccur10times each.Do 50 simulations and print the average number of caps per sim-ulation.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement