|
@@ -42,6 +42,8 @@ Before you get to the laboratory you should have:
|
42
|
42
|
|
43
|
43
|
2. Studied the concepts and instructions for the laboratory session.
|
44
|
44
|
|
|
45
|
+3. Taken the Pre-Lab quiz, available in Moodle.
|
|
46
|
+
|
45
|
47
|
|
46
|
48
|
---
|
47
|
49
|
|
|
@@ -272,9 +274,7 @@ In the introduction to the topic of functions you saw that in mathematics and in
|
272
|
274
|
|
273
|
275
|
4. Execute the program and observe what is displayed in the window `Application Output`. Notice the difference between the content of the variables `argValue` and `argRef` despite the fact that both had the same initial value, and that `paramValue` and `paramRef` were assigned the same value. Explain why the content of `argValor` does not change, while the content of `argRef` changes from 0 to 1.
|
274
|
276
|
|
275
|
|
-### Exercise 2
|
276
|
|
-
|
277
|
|
-In this exercise you will practice the creation of an overloaded function.
|
|
277
|
+### Exercise 2: Creation of an overloaded function
|
278
|
278
|
|
279
|
279
|
**Instructions**
|
280
|
280
|
|
|
@@ -312,9 +312,7 @@ In this exercise you will practice the creation of an overloaded function.
|
312
|
312
|
|
313
|
313
|
2. Now you will create an overloaded function `circle` that receives as arguments the value of the angle $$t$$, the reference to the variables $$x$$ and $$y$$, and the value for the radius of the circle. Call the overloaded function `circle` that you just implemented from `main()` to calculate the values of the coordinates $$x$$ and $$y$$ for the circle with radius 15 and draw its graph. Graph the circle within the `wCircle` object. To do this, you must call the method functions `AddPointToGraph(x,y)`, `Plot` and `show` from `main()`. Remember that these should be preceded by `wCircle`, for example, `wCircle.show()`.
|
314
|
314
|
|
315
|
|
-### Exercise 3
|
316
|
|
-
|
317
|
|
-In this exercise you will implement another function to calculate the coordinates of the points in the graph of a curve.
|
|
315
|
+### Exercise 3: Implement function to calculate the coordinates of the points in the graph of a curve
|
318
|
316
|
|
319
|
317
|
**Instructions**
|
320
|
318
|
|