Liberty BASIC Community Forum
« Baseball Playoff's - Feb. 3, 2012 »

Welcome Guest. Please Login or Register.
Mar 29th, 2017, 9:41pm


Rules|Home|Help|Search|Recent Posts|Notification


« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Baseball Playoff's - Feb. 3, 2012  (Read 347 times)
Noble D. Bell
Moderator
ImageImageImageImageImage


member is offline

Avatar




PM

Gender: Male
Posts: 927
xx Baseball Playoff's - Feb. 3, 2012
« Thread started on: Feb 3rd, 2012, 3:11pm »

In Major League Baseball, the American League has three divisions, the East and Central divisions with 5 teams each, and the West division with 4 teams. Four teams in the National League will make the playoffs, the three division leaders, and a wild card team. The wild card team is the team with the best record in the league, not including the three division leaders.

Assuming all teams are equally good, write an LB program that will show the probability of a team in each division making the playoffs. Assume any ties are broken randomly.

For extra credit, also do the National League, in which the East and West divisions have 5 teams, and the central division has 6 teams.

Good luck!
User IP Logged

Thank you and God bless,
Noble D. Bell
http://www.noblebell.com
stefanhes
Guru
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 723
xx Re: Baseball Playoff's - Feb. 3, 2012
« Reply #1 on: Apr 6th, 2012, 07:50am »

Code:
'' In Major League Baseball, the American League has three divisions, the East and Central divisions with 5 teams each,
'' and the West division with 4 teams. Four teams in the National League will make the playoffs,
'' the three division leaders, and a wild card team. The wild card team is the team with the best record in the league,
'' not including the three division leaders.

'' Assuming all teams are equally good, write an LB program that will show the probability of a team in each
'' division making the playoffs. Assume any ties are broken randomly.

'' For extra credit, also do the National League, in which the East and West divisions have 5 teams, and the central division has 6 teams.

''E 5, C 5, W 4

''P(an E-team goes to the playoffs) = P(an E-team becomes leader)  + P(an E-team is not leader, but best of 11)
print "The probability of a team in each East or Central division making the playoffs = ";1/5 + 4/5 * 1/11
print "The probability of a team in each West division making the playoffs = ";1/4 + 3/4 * 1/11

 
User IP Logged

http://www.soundofanimals.com
http://sincosin.com
Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

Rules|Home|Help|Search|Recent Posts|Notification

Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls