Compound if statements and Random Numbers (50 points)
- Your program must generate two random numbers between 0 and 10 inclusively.
Do this by using the rand function (uses stdlib.h). You must use this
function twice - once for each random number.
- The random numbers must be reseeded based on the computer's clock.
That means every time you execute your program, the random numbers generated
will not be the same. To do this, use srand((unsigned)time(NULL)) only once
at the top of your program. The srand function uses the time.h and stdlib.h
- Your program must produce similar output as the ones indicated below.
Keep in mind since this program generates random numbers, your numbers will
probably not be the same as the ones in the sample output.
- Your code must be well documented. Also include your name, date, project number and
a breif description of the program.
9 X 4 = 5
Sorry! 5 is an incorrect answer.
9 X 5 = 45
Good! 45 is the correct answer.
6 X 8 = 47
Sorry! 47 is an incorrect answer.
1 X 10 = 10
Good! 10 is the correct answer.