Question
PLEASE help me to solve the below full program in full code in C programming language == ((Guessing Game )) The user will be given
PLEASE help me to solve the below full program in full code
in C programming language
==
((Guessing Game ))
The user will be given a main menu of the following :
.- Subscribe
.-Sign in
.-Exit
The details are the following:
.--Subscribe: First, the player has to create an account for himself. He will be prompted to enter a login name (Exactly 5 alphabets) and a password (more than 4 numeric digits). The login name should not have been used by another player
.--Login: 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 passwor the program gives a proper message and returns to the main menu. Also, the game may login with the login "admin" and his password. Based on the login the appropriate submenu will be given.
====
((player menu:))
.Show score
.Guess a word
. Logout
The details are the following:
--Show score: A list of total counts of wins, loses, and draws of the player
--Guess a word: It consists of two rounds:
- Round 1: 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.
-Round 2: 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 a :
-Win: for the player who won both rounds.
-Loss: for the player who lost both rounds.
-Draw: When the player wins in either rounds.
--Logout: It displays the player new total score for this login. If he made a higher wins than the previous login he should get a proper congratulation message. Finally, logs the player out to the main menu.
====
((Admin Menu: ))
.-Activate player
.- Show score statistics
.- Logout
The details are the following:
-- Activate user: A list of newly subscribed users will be displayed, and the admin chooses which one to activate.
--Show score statisties: A list will be displayed of all players' logins and their scores.
--Logout: The admin logs out to the main menu.
================
ONLY INFORMATION:
what your mind shold contain when writing a program :
((Good Use of Whitespace ))
Proper use of whitespace can greatly increase the readability of code. Every time you open a block of code (a function, "if" statement, "for" or "while" loop, etc.), you should indent one additional level You are free to use your own indent style, but you must be consistent
((Good Variable Names ))
The variable and function names should generally make it clear what you are doing. Variable names should be descriptive of the value stored in them. Local variables whose purpose is self-evident (e.g loop counters or array indices) can be single letters. Parameters can be one (well-chosen) word Global variables should probably be two or more words Multiple-word variables should be formatted consistently, both within and across variables. For example, "hashtable_array_size" or "hashtableArraySize" are both okay, but "hashtable arraySize" is not. And if you were to use hashtable_array_size" in one place, using "hashtableArray" somewhere else would not be okay
((Line Length ))
While there are many different standards for line length, we require that your lines be no longer than 80 characters, so we can easily view and print your code
((Magic Numbers )) and((failure conditions /error cheacking ))
(in C programming language and Unix)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started