So I have the following homework, but I don’t understand exactly what the process is. Has anyone seen this question before or actually understands what the logic should be? I don’t want code, I know how to program, but I don’t exactly know what to do here.
Consider a wire across which data is transmitted bit-by-bit. Occasionally, a bit or a group of
consecutive bits is transmitted incorrectly. If the previous bit was transmitted correctly, the
probability that the current bit is transmitted incorrectly is 0.1. If the previous bit was
transmitted incorrectly, the probability that the current bit is also transmitted incorrectly
is 0.3. Write a program called BitError.java that simulates the transmission of one million
bits and prints out the percentage of bits transmitted incorrectly.
(Hint: According to theory, the expected answer is 12.5%.)
You test for the probability of an event happening as follows
Your code should look something like this