Computer Science, asked by roopamanoj991, 7 months ago

your task is to complete the function count_heads() that takes two inputs N and R.the function should should return the probability of getting exactly R heads on N successive toses of a fair coin.A fair coin has a probability of landing a head or a tail(i.e 0.5) on each toss.

for example:
for the argument provided as follows:

1 1

the function should return

0.500000

another example

for the argument

4 3

the function should return

0.250000​

Attachments:

Answers

Answered by MirHuzaifa
0

Answer:

d4gf5b5fbf5bfb5fb5fbt5

Explanation:

chrgh

Answered by saloni673
0

Answer:

please attach the documents clearly

Similar questions