Question: The program begins by asking if the user has a user-name. If no they can create a user name and it will be added to
The program begins by asking if the user has a user-name. If "no" they can create a user name and it will be added to "users.txt" If "yes", then they can "log in" by entering their user-name. If the user-name is on the list, they can take the test. Otherwise, they get an error message. Once the user has "logged in", they will be asked how many questions they want to answer. The range will be a minimum of 1 and the maximum will be the same as the number of questions in the text file. The program will then ask the user that number of questions, offering the multiple choice answers, and recording the answers the user gives. The questions must be randomly printed and the same question must not appear twice. Note that if there are no questions in the questions.txt file, an error message should print and the program will end. After the test is done, the program will update the users. txt stats for that user AND sort the data in descending order. NOTES: There must be ten questions at least that fit the rating chosen. If there are not, then an error message must be printed
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
