Question: Write a C program which tests if you're psychic with a 4 - sided die: Each round, predict which number is going to come up

Write a C program which tests if you're psychic with a 4-sided die: Each round, predict which number is going to come up (0..3) Press the corresponding button RB0..RB3. When you release the button, a random number in the range of 0..3 is generated If you were right, the PIC records that. Likewise if you were wrong. The LCD display displays how many times you were right and wrong.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!