Write a C program (gussing game) with three menus..
First The (main menu) :
Please enter your choice..
1- subscribe //the player has to create an account then He will enter a login name (Exactly 5 alphabets) and a password (more than 4 numeric digits).
2- sign in //The login name should not have been used by another player .. The player has to sign in by entering his login and his password. If the password is wrong, he will be given two more password trials. If the player failed to recall the password, the program gives a proper message and returns to the main menu.
3- exit
NOTE: user will cant enter without activation his account from the admin .. admin user is by default username: admin, password: 12345
Second the (player menu):
Please enter your choice...
1- show score //A list of total counts of wins, loses, and draws of the player
2- guess a word /*It consists of two rounds: first round: The player will be asked to guess a word of 3 letters. He will be given three trials for three letters. Then he inputs the word. If the word was correct, he won the round. (In the first round the word will chosen randomly from an array)
Second round: The player will pick a word of three letters for his opponent. Similarly, the opponent will be given three trials. If the opponent guessed word correctly, he won the round.
At the end: The score will be ..
1- Win: for the player who won both rounds
2- Loss: for the player who lost both rounds.
3- Draw: When the player wins in either rounds. */
3- sign out //It displays the player new total score for this login. If he made a higher wins than the previous sign in he should get a proper congratulation message. Finally, logs the player out to the main menu
third the (admin menue):
Please enter your choice...
1- activate player //A list of newly subscribed users will be displayed, and the admin chooses which one to activate.
2- show score statistics //A list will be displayed of all players' logins and their scores
3- sign out //The admin logs out to the main menu