Question: Please write a program in Prolog with the following spec: The Application Context: When a username password combination fails, users are asked to answer a
Please write a program in Prolog with the following spec:


The Application Context: When a username password combination fails, users are asked to answer a set of questions, such as the mother's maiden name, first pet's name etc, and allowed to reset the password in case the user answersa predetermined number of questions successfully. Our objective is to enhance this capability. Assume that the kind of questions to be asked come in three categories, personal information (something about the user), usage information (Information about the usage) and presence information (like the time of day, weather, temperature). Table 1 lists some potential attributes that can be queried as questions. You may add some more attributes Presence Personal Information Sage Last name ob title Time of Day e Home directory Mother's maiden name Season (Summer/ Winter, etc) Last day to login Yesterday's weather? First pet's name Last High School's name Boss's name onth of last big storm Mother's birth place Security clearance Randomly generated riddle A Captcha Number of siblings Office number Each answer is given a "difficulty score" between 0 and 10. For example, a user last name would get a score of 1, the first pet's name would get a score of 3 and the mother's maiden name would get a score of 8 Your Assignment: 1. Fill in five more rows in the table. 2. Assign an Integer "difficulty score" for each attribute value in each category. Please spread them out in the [1.10] range 3. Write a Prolog program that asks questions (the number of questions not determined a priori, or hard coded that will allow the user to rest his password when the sum of the "difficulty scores' of the asked questions is greater than 6, and the questions are generated from at least two categories d 1f unur nrngram is run renpatedly it chnuld produce all nnecihlo nupstinn epnuupnpes The Application Context: When a username password combination fails, users are asked to answer a set of questions, such as the mother's maiden name, first pet's name etc, and allowed to reset the password in case the user answersa predetermined number of questions successfully. Our objective is to enhance this capability. Assume that the kind of questions to be asked come in three categories, personal information (something about the user), usage information (Information about the usage) and presence information (like the time of day, weather, temperature). Table 1 lists some potential attributes that can be queried as questions. You may add some more attributes Presence Personal Information Sage Last name ob title Time of Day e Home directory Mother's maiden name Season (Summer/ Winter, etc) Last day to login Yesterday's weather? First pet's name Last High School's name Boss's name onth of last big storm Mother's birth place Security clearance Randomly generated riddle A Captcha Number of siblings Office number Each answer is given a "difficulty score" between 0 and 10. For example, a user last name would get a score of 1, the first pet's name would get a score of 3 and the mother's maiden name would get a score of 8 Your Assignment: 1. Fill in five more rows in the table. 2. Assign an Integer "difficulty score" for each attribute value in each category. Please spread them out in the [1.10] range 3. Write a Prolog program that asks questions (the number of questions not determined a priori, or hard coded that will allow the user to rest his password when the sum of the "difficulty scores' of the asked questions is greater than 6, and the questions are generated from at least two categories d 1f unur nrngram is run renpatedly it chnuld produce all nnecihlo nupstinn epnuupnpes
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
