Weighted Probabilities (for x86 Processors)
Create a procedure that receives a value N between 0 to 100. When the procedure is called, there should be a probability of N/100 that it clears the Zero flag. Write a program that asks the user to enter a probability value 0 to 100. The program should call your procedure 30 times, passing it the same probability value and displaying the value of the Zero flag after the procedure returns.