|
@@ -6,10 +6,46 @@
|
6
|
6
|
![main2.png](images/main2.png)
|
7
|
7
|
![main3.png](images/main3.png)
|
8
|
8
|
|
|
9
|
+[Verano 2016 - Ive]
|
|
10
|
+
|
|
11
|
+## Objectives:
|
|
12
|
+
|
|
13
|
+1. Use relational expressions and select adequate logical operators to make decisions.
|
|
14
|
+2. Apply decision structures.
|
|
15
|
+3. Analyze the declaration of a class to understand how to create and manipulate objects of the class.
|
|
16
|
+4. Practice the creation and manipulation of objects, and the invocation of its "setters" and "getters".
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+## Pre-Lab:
|
|
20
|
+
|
|
21
|
+Before you get to the laboratory you should have:
|
|
22
|
+
|
|
23
|
+1. Reviewed the following concepts:
|
|
24
|
+
|
|
25
|
+ a. Logical operators
|
|
26
|
+
|
|
27
|
+ b. `if`, `else`, `else if`.
|
|
28
|
+
|
|
29
|
+2. Reviewed the following concepts related to objects and classes in C++:
|
|
30
|
+
|
|
31
|
+ a. creation of objects of a class.
|
|
32
|
+
|
|
33
|
+ b. using the "getter" methods to access an object's attributes.
|
|
34
|
+
|
|
35
|
+ c. using the "setter" methods to modify an object's attributes.
|
|
36
|
+
|
|
37
|
+3. Studied the documentation for the `Bird` class available in [this link](http://ada.uprrp.edu/~ranazario/bird-html/class_bird.html).
|
|
38
|
+
|
|
39
|
+4. Studied the concepts and instructions for this laboratory session.
|
|
40
|
+
|
|
41
|
+5. Taken the Pre-Lab quiz available in Moodle.
|
|
42
|
+
|
9
|
43
|
---
|
10
|
44
|
|
11
|
45
|
---
|
12
|
46
|
|
|
47
|
+To facilitate this laboratory experience, we will begin by reviewing some concepts related to objects and we will describe the `Bird` class.
|
|
48
|
+
|
13
|
49
|
|
14
|
50
|
##Classes and objects in C++
|
15
|
51
|
|