posted 8 years ago

"Write a program to calculate the probability that a family with two children

will consist of two boys, a boy and a girl, or two girls."

these are my instructions. i am supposed to write a program to calculate the probability of a family having two children. i am okay importing the file, but the file that i am supposed to import is like this: bb gg bg, representing boy and girl outcomes, but i dont know how to implement that into a program that is supposed to predict the probability of a couple's child combination. thank you for any help.

__________________

"Write a program to calculate the probability that a family with two children

will consist of two boys, a boy and a girl, or two girls."

these are my instructions. i am supposed to write a program to calculate the probability of a family having two children. i am okay importing the file, but the file that i am supposed to import is like this: bb gg bg, representing boy and girl outcomes, but i dont know how to implement that into a program that is supposed to predict the probability of a couple's child combination. thank you for any help.

__________________

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |