|
@@ -1,4 +1,3 @@
|
1
|
|
-
|
2
|
1
|
# Decision Structures - Password Strength
|
3
|
2
|
|
4
|
3
|
![main1.png](images/main1.png)
|
|
@@ -174,14 +173,19 @@ The following are additional details and examples of the criteria for **subtract
|
174
|
173
|
---
|
175
|
174
|
|
176
|
175
|
!INCLUDE "../../eip-diagnostic/password-strength/en/diag-password-strength-01.html"
|
|
176
|
+<br>
|
177
|
177
|
|
178
|
178
|
!INCLUDE "../../eip-diagnostic/password-strength/en/diag-password-strength-02.html"
|
|
179
|
+<br>
|
179
|
180
|
|
180
|
181
|
!INCLUDE "../../eip-diagnostic/password-strength/en/diag-password-strength-03.html"
|
|
182
|
+<br>
|
181
|
183
|
|
182
|
184
|
!INCLUDE "../../eip-diagnostic/password-strength/en/diag-password-strength-04.html"
|
|
185
|
+<br>
|
183
|
186
|
|
184
|
187
|
!INCLUDE "../../eip-diagnostic/password-strength/en/diag-password-strength-05.html"
|
|
188
|
+<br>
|
185
|
189
|
|
186
|
190
|
---
|
187
|
191
|
|
|
@@ -321,7 +325,7 @@ Your task is to use mathematical expressions and decision structures for the ind
|
321
|
325
|
|
322
|
326
|
---
|
323
|
327
|
|
324
|
|
-In Example 2, the number of **requisites** is 5 because `"S1nf@nia!"` meets the criteria for length and also contains uppercase letters, lowercase letters, numbers and symbols. Therefore, the score for the number of requisites is $2 \cdot 5 =10$.
|
|
328
|
+In Example 2, the number of **requisites** is 5 because `"S1nf@nia!"` meets the criteria for length and also contains uppercase letters, lowercase letters, numbers and symbols. Therefore, the score for the number of requisites is $$2 \cdot 5 =10$$.
|
325
|
329
|
|
326
|
330
|
In the project's code you will find examples of how to calculate the first two positive criteria: the number of characters in the password and the numbers of uppercase letters. You can compile and execute the example so you can see the working interface with these two criteria. Part of your task is to add the code to compute the score for the remaining criteria. Remember that you should accumulate the total score and invoke the functions to update the graphical interface.
|
327
|
331
|
|
|
@@ -359,4 +363,4 @@ Use "Deliverables" in Moodle to upload the `readpassword.cpp` file that contains
|
359
|
363
|
|
360
|
364
|
## References
|
361
|
365
|
|
362
|
|
-[1] Passwordmeter, http://www.passwordmeter.com/
|
|
366
|
+[1] Passwordmeter, http://www.passwordmeter.com/
|