|
@@ -1,5 +1,5 @@
|
1
|
1
|
|
2
|
|
-#Decision Structures - Birth of a Bird
|
|
2
|
+# Selection Structures - Birth of a Bird
|
3
|
3
|
|
4
|
4
|
|
5
|
5
|
![main1.png](images/main1.png)
|
|
@@ -8,12 +8,12 @@
|
8
|
8
|
|
9
|
9
|
[Verano 2016 - Ive - Tatiana]
|
10
|
10
|
|
11
|
|
-In almost every instance in which we want to solve a problem there 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. In C++, decision instructions (or conditionals) are structured using if, else, else if or switch. Relational expressions and logical operators are common when handling decision structures. In this laboratory experience, you will practice the use of some of these decision structures by completing a design using the class called Bird. In addition, you will review concepts related to objects.
|
|
11
|
+In almost every instance in which we want to solve a problem, we select 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 a design using the class called Bird. In addition, you will review concepts related to objects.
|
12
|
12
|
|
13
|
13
|
## Objectives:
|
14
|
14
|
|
15
|
15
|
1. Use relational expressions and select adequate logical operators to make decisions.
|
16
|
|
-2. Apply decision structures.
|
|
16
|
+2. Apply selection structures.
|
17
|
17
|
3. Analyze the declaration of a class to understand how to create and manipulate objects of the class.
|
18
|
18
|
4. Practice the creation and manipulation of objects, and the invocation of its "setters" and "getters".
|
19
|
19
|
|
|
@@ -314,8 +314,8 @@ The genes in the eyebrows follow these rules:
|
314
|
314
|
|
315
|
315
|
1. Load the project `BirthOfABird` into `QtCreator`. There are two ways to do this:
|
316
|
316
|
|
317
|
|
- * Using the virtual machine: Double click the file `BirthOfABird.pro` located in the folder `/home/eip/labs/conditionals-birthofabird` of your virtual machine.
|
318
|
|
- * Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/conditionals-birthofabird` to download the folder `conditionals-birthofabird` from `Bitbucket`. Double click the file `BirthOfABird.pro` located in the folder that you downloaded to your computer.
|
|
317
|
+ * Using the virtual machine: Double click the file `BirthOfABird.pro` located in the folder `/home/eip/labs/selections-birthofabird` of your virtual machine.
|
|
318
|
+ * Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/selections-birthofabird` to download the folder `selections-birthofabird` from `Bitbucket`. Double click the file `BirthOfABird.pro` located in the folder that you downloaded to your computer.
|
319
|
319
|
|
320
|
320
|
2. Configure the project.
|
321
|
321
|
|