In this tutorial we write a simple function that can count how many words are in a string. We also teach how to call a function.
In this lesson we talk about how to use the formula nCr*p^r*q^(n-r) to solve binomial distribution problems.
In this lesson you use a While Loop to program a simulation of the greedy pig game – keep rolling the die until a 2 comes up.
In this lesson i talk about when binomial distribution is used and give you an example of how it works. Next lesson I will talk about using the formula.
In this lesson you are first introduced what an arithmetic sequence is, then you are taught how to program the formula of an arithmetic sequence in visual basic using variables, mathematical operators and for loops. Must have completed lesson 7 on For Loops prior to starting this tutorial.
In this lesson we explain what expected values are, and give you two examples for working it out.
In this lesson you learn about using For Loops to automate actions – instead of manually repeating the same instructions over and over again, we can get the computer to do it automatically – which is essentially the whole point of programming!
Probability lesson 4 – Mutually exclusive events in tree diagrams
In this lesson we create a typing speed tester program. We used the keydown event to make the program keep count of words every time the space bar is pressed. We calculated the typing speed by dividing the number of words by number of seconds and then multiplying by 60. The typing speed is continuously …
In this lesson we talk about what independent events are, and do some sample problems with the formula for calculating the probability of independent events occurring, P(A and B) = P(A) x P(B).