Question: Language is c programming Guessing random number game User interface, you will ask user for their name. Objective: make user belief he / she is

"Language is c programming
Guessing random number game
User interface, you will ask user for their name.
Objective: make user belief he/she is psychic, implies that not everyone will get the right answer in the allotted number of times. Otherwise the user would know that the system is rigged.
User must have the ability to pick difficulty level, i.e beginning, apprentice, jedi, wizard.... You name it what you want.
But levels must be 1-10; 1-100; 1-500,1-1000;
User picks the number of guesses, but a maximum of 25% of group
i.e. TH113 tries for group of 1-10,25 tries on group 1-100......
Must check for repeated answers
Check to verify guessed number is within range of selection
Would be nice to give the user the odds that he//she beat with the number of tries used. i.e. which should be (number of tries)/(maximum number in group)... i.e gets it right after 2 tries in group (1-10) then its 2/10=.2 but if range is (1-100) then 2/100=.02 so he/she beat 98% or something like that, you might have to improve equation.
User will get chance to play as long as he//she wants to, even if they win."

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!