|
@@ -4,16 +4,16 @@
|
4
|
4
|
![main2.png](images/main2.png)
|
5
|
5
|
![main4.png](images/main4.png)
|
6
|
6
|
|
7
|
|
-[verano2016 - Coralys]
|
|
7
|
+[verano 2016 - Coralys - Ive]
|
8
|
8
|
|
9
|
9
|
Arithmetic expressions are an essential part of almost any algorithm that solves a useful problem. Therefore, a basic skill in any computer programming language is to implement arithmetic expressions correctly. In this laboratory experience you will practice the implementation of arithmetic expressions in C++ by writing equations for the quadratic formula and completing the code for a game in which a frog jumps from leaf to leaf.
|
10
|
10
|
|
11
|
11
|
## Objectives:
|
12
|
12
|
|
13
|
|
-1. To implement arithmetic expressions in C++ to produce the graphs that will define the trajectory of the frog's jump in the game.
|
14
|
|
-2. To use constant variables adequately.
|
15
|
|
-3. To define variables using adequate data types.
|
16
|
|
-4. To cast a data value to another type when necessary.
|
|
13
|
+1. Implement arithmetic expressions in C++ to produce the graphs that will define the trajectory of the frog's jump in the game.
|
|
14
|
+2. Use constant variables adequately.
|
|
15
|
+3. Define variables using adequate data types.
|
|
16
|
+4. Cast a data value to another type when necessary.
|
17
|
17
|
|
18
|
18
|
|
19
|
19
|
## Pre-Lab:
|
|
@@ -23,17 +23,12 @@ Before you get to the laboratory you should have:
|
23
|
23
|
1. Reviewed the following concepts:
|
24
|
24
|
|
25
|
25
|
a. Implementing arithmetic expressions in C++.
|
26
|
|
-
|
27
|
26
|
b. Basic data types in C++ (int, float, double)
|
28
|
|
-
|
29
|
27
|
c. Using "type casting" to cast the value of variables to other data types within expressions.
|
30
|
|
-
|
31
|
28
|
d. Using arithmetic functions and constants from the `cmath` library.
|
32
|
|
-
|
33
|
29
|
e. Quadratic equations and their graphs.
|
34
|
30
|
|
35
|
31
|
2. Studied the concepts and instructions for the laboratory session.
|
36
|
|
-
|
37
|
32
|
3. Taken the Pre-Lab quiz available in Moodle.
|
38
|
33
|
|
39
|
34
|
|