Procházet zdrojové kódy

README-en.md edited online with Bitbucket

Jose R Ortiz Ubarri před 8 roky
rodič
revize
cafbc7c261
1 změnil soubory, kde provedl 14 přidání a 6 odebrání
  1. 14
    6
      README-en.md

+ 14
- 6
README-en.md Zobrazit soubor

108
 
108
 
109
 !INCLUDE "../../eip-diagnostic/quadratic-frog/en/diag-quadratic-frog-09.html"
109
 !INCLUDE "../../eip-diagnostic/quadratic-frog/en/diag-quadratic-frog-09.html"
110
 <br>
110
 <br>
111
+
111
 ---
112
 ---
112
 
113
 
113
 ---
114
 ---
115
 
116
 
116
 ## Laboratory session:
117
 ## Laboratory session:
117
 
118
 
118
-### Exercise 1: Implement the quadratic formula
119
+### Exercise 1 - Implement the quadratic formula
119
 
120
 
120
 In this exercise you will implement the quadratic formula to complete a game in which a frog leaps from one leaf to another. You will assume that the leaves are in the $$x$$-axis and that the leap is determined by a parabola that opens down. If you want the frog to leap from leaf to leaf, you must find a quadratic equation with a parabola that opens down and intersects the $$x$$-axis in the places where the leaves are located. Your task is to write the equations for the quadratic formula.
121
 In this exercise you will implement the quadratic formula to complete a game in which a frog leaps from one leaf to another. You will assume that the leaves are in the $$x$$-axis and that the leap is determined by a parabola that opens down. If you want the frog to leap from leaf to leaf, you must find a quadratic equation with a parabola that opens down and intersects the $$x$$-axis in the places where the leaves are located. Your task is to write the equations for the quadratic formula.
121
 
122
 
150
 
151
 
151
     ---
152
     ---
152
 
153
 
153
-5. Use "Deliver 1" in Moodle to submit the file `QuadraticFormula.cpp` containing the code with the functions `QuadraticPlus` and `QuadraticMinus`. Remember to use good programming practices, by including the names of the programmers and documenting your program.
154
-
155
-6. To play, the frog should leap from one leaf to another. Note that the leaves have values for $$x_1$$ and $$x_2$$. These values represent the intersects of the parabola with the $$x$$-axis. You should input the values for the coefficients $$a, b, c$$ of the quadratic equation so that its graph that is a parabola that opens down and intersects the $$x$$-axis in the values $$x_1, x_2$$ shown in the leaves. You can obtain these values noting that
154
+5. To play, the frog should leap from one leaf to another. Note that the leaves have values for $$x_1$$ and $$x_2$$. These values represent the intersects of the parabola with the $$x$$-axis. You should input the values for the coefficients $$a, b, c$$ of the quadratic equation so that its graph that is a parabola that opens down and intersects the $$x$$-axis in the values $$x_1, x_2$$ shown in the leaves. You can obtain these values noting that
156
 
155
 
157
  $$a x^2 + b x + c = a(x-x_1)(x-x_2),$$
156
  $$a x^2 + b x + c = a(x-x_1)(x-x_2),$$
158
 
157
 
161
 
160
 
162
 
161
 
163
 
162
 
164
-### Exercise 2: Write a program to obtain a student's grade point average (GPA)
163
+### Exercise 2 - Write a program to obtain a student's grade point average (GPA)
165
 
164
 
166
 Suppose that all courses in Yauco's University are 3 credits each and have the following point values: $$A = 4$$ points per credit; $$B = 3$$ points per credit; $$C = 2$$ points per credit; $$D = 1$$ point per credit y $$F = 0$$ points per credit. 
165
 Suppose that all courses in Yauco's University are 3 credits each and have the following point values: $$A = 4$$ points per credit; $$B = 3$$ points per credit; $$C = 2$$ points per credit; $$D = 1$$ point per credit y $$F = 0$$ points per credit. 
167
 
166
 
177
 
176
 
178
     2. Remember that, in C++, when both operands in the division are integers, the result will also be an integer; the remainder will be discarded. Use "type casting": `static_cast<type>(expression)` to solve this problem.
177
     2. Remember that, in C++, when both operands in the division are integers, the result will also be an integer; the remainder will be discarded. Use "type casting": `static_cast<type>(expression)` to solve this problem.
179
 
178
 
180
-3. Verify your program by computing the GPA of a student that has two A's and 2 B's; what is the grade of this student, A or B (A goes from 3.5 to 4 points)? When your program is correct, save the `main.cpp` file and submit it using "Deliver 2" in Moodle. Remember to follow the instructions regarding the names and types of the variables,  to include the names of the programmers, to document your program and to use good programming practices.
179
+3. Verify your program by computing the GPA of a student that has two A's and 2 B's; what is the grade of this student, A or B (A goes from 3.5 to 4 points)? When your program is correct, save the `main.cpp` file. 
180
+---
181
+
182
+---
183
+
184
+## Deliverables
185
+
186
+1. Use "Deliverable 1'  in Moodle to submit the file `QuadraticFormula.cpp` containing the code with the functions `QuadraticPlus` and `QuadraticMinus`. Remember to use good programming practices, by including the names of the programmers and documenting your program.
187
+
188
+2. Use "Deliverable 2"  to submit the file main.cpp with the code to compute grade average. Remember to follow the instructions regarding the names and types of the variables, to include the names of the programmers, to document your program and to use good programming practices.