|
|
|
|
4
|
![main2.png](images/main2.png)
|
4
|
![main2.png](images/main2.png)
|
5
|
![main3.png](images/main3.png)
|
5
|
![main3.png](images/main3.png)
|
6
|
|
6
|
|
7
|
-[Verano 2016 - Ive - Coralys]
|
|
|
8
|
|
7
|
|
9
|
-In almost every instance in which we want to solve a problem, we choose among are one or more options that depend on whether certain conditions are met. Computer programs are built to solve problems, therefore they should have a structure that allows them to make decisions and select alternatives. In C++, selections are structured using `if`, `else`, `else if` or `switch`. Relational expressions and logical operators are common when handling selection structures. In this laboratory experience, you will practice the use of some of these selection structures by completing the design of an application that determines the strength of a password.
|
|
|
|
|
8
|
+In almost every instance in which we want to solve a problem, we choose between different options depending on whether certain conditions are met. Computer programs are built to solve problems, therefore they should have a structure that allows them to make decisions and select alternatives. In C++, selections are structured using `if`, `else`, `else if` or `switch`. Relational expressions and logical operators are common when handling selection structures. In this laboratory experience, you will practice the use of some of these selection structures by completing the design of an application that determines the strength of a password.
|
10
|
|
9
|
|
11
|
## Objectives:
|
10
|
## Objectives:
|
12
|
|
11
|
|
|
|
|
|
85
|
|
84
|
|
86
|
c. The score for `"sancochin"` would be $$0$$ because it **only** has lowercase letters. The count is $$9$$.
|
85
|
c. The score for `"sancochin"` would be $$0$$ because it **only** has lowercase letters. The count is $$9$$.
|
87
|
|
86
|
|
88
|
-4. **Digits:** the score is $4n$ if the password consists of a mix of digits **and** at least another type of character (lowercase, uppercase, symbols). If not, the score is $$0$$. For example:
|
|
|
|
|
87
|
+4. **Digits:** the score is $$4n$$ if the password consists of a mix of digits **and** at least another type of character (lowercase, uppercase, symbols). If not, the score is $$0$$. For example:
|
89
|
|
88
|
|
90
|
a. The score for `"ab453"` would be $$4 \cdot 3 = 12$$ because the password contains $$3$$ digits and contains characters of another type.
|
89
|
a. The score for `"ab453"` would be $$4 \cdot 3 = 12$$ because the password contains $$3$$ digits and contains characters of another type.
|
91
|
|
90
|
|
|
|
|
|
216
|
|
215
|
|
217
|
#### Instructions
|
216
|
#### Instructions
|
218
|
|
217
|
|
219
|
-1. Load the project `PassworStrength` into `QtCreator`. There are two ways to do this:
|
|
|
|
|
218
|
+1. Load the project `PasswordStrength` into `QtCreator`. There are two ways to do this:
|
220
|
|
219
|
|
221
|
* Using the virtual machine: Double click the file `PassworStrength.pro` located in the folder `/home/eip/labs/selections-passwordstrength` of your virtual machine.
|
220
|
* Using the virtual machine: Double click the file `PassworStrength.pro` located in the folder `/home/eip/labs/selections-passwordstrength` of your virtual machine.
|
222
|
* Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/selections-passwordstrength` to download the folder `selections-passwordstrength` from `Bitbucket`. Double click the file `PassworStrength.pro` located in the folder that you downloaded to your computer.
|
221
|
* Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/selections-passwordstrength` to download the folder `selections-passwordstrength` from `Bitbucket`. Double click the file `PassworStrength.pro` located in the folder that you downloaded to your computer.
|