Explore BrainMass
Share

Multipling using Rand

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Use Rand to produce 2 positive one digit integers.

https://brainmass.com/computer-science/random-number-generation/multipling-rand-70880

Solution Preview

Random integer:
In C++, the rand function returns a "random" positive integer from 0 to a large value (at least 32,767) ...

Solution Summary

The solution assists with multiplying using Rand.

\$2.19

Quantitative Methods Coin Toss Simulation

Activity 18.1

1. Toss a coin 10 times, and after each toss record in the following table the result of the toss and the proportion of heads so far. For example, consider the sequence of tosses:
H T T T H. After the first toss, the proportion of heads was 1/1, after the second the proportion of heads was 1/2, then after the third toss it was 1/3, 1/4 after the fourth, and finally 2/5 after the fifth toss.
Toss Number 1 2 3 4 5 6 7 8 9 10
Heads or Tails? h h h t h t t t h h
Proportion of H so far 1 2 3 3/4 4/5 4/6 4/7 4/8 5/9 6/10

2. On the following axes, plot the proportion of heads so far, for each toss from your table.