Question
(No need for creating interface, only code) Write full C program, first the program will show a menu of the following: MAIN MENU .. Enter
(No need for creating interface, only code)
Write full C program, first the program will show a menu of the following:
MAIN MENU .. Enter your choice:
1- creat a new account.
2- login
3- cancel //close the program
Detailsevery choice should do the following:
1- the user has to create an account and he will have to enter a user name (exactly 5 alphabet) and a password (more than 4 numeric digits)
2- case one: if user: the user has to use his username and password to log in, if he enter a wrong password he will be given two more password trails, if he failed again entering the password the program will gives him a warning message and returns him to the main menu.
Case 2: if admin: admin can log in with his user name and password (username: admin, password:12345)
based on case one or two the sub menus will be shown as following:
If log in case 1 (user):
USER MENU .. Enter your choice:
1- my points
2- what is the word
3- logout
Detailsevery choice should do the following:
1- my points shows the total counts (wins, losses and draws)
2- what is the word contains three steps:
Step one: the user have to guess a word of three letters .. he will be given three trails for three letters, next he will input the word if word tru he won the step.
Note: the word should be choice randomly from this
words (hat,cat,bed,sad,hen).
Step two: the user will choice a word of three letters and he will give the program three trailers, if the program guessed the word he won the step.
Step three: showing the following:
(Won) .. If the user won both step one and step two.
(Draw) .. if the user won one of the steps one or two.
3- log out its showing the user his total points of this log in if he gets a higher points than the last log in he will get a motivation message then log out to the main menu.
If log in case 2 (admin):
ADMIN MENU .. Enter your choice:
1- accept user
2- users points
3- logout
Detailsevery choice should do the following:
1- accept user: a list of new registered (from creat new account) users and the admin choices which one to accept.
2- users points: a list of the points of all users and logins.
3- logout the admin logout to the main menu
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