Browse Source

Correccion ingles y comentarios de codigo

SaraB 7 years ago
parent
commit
6dd963b947
2 changed files with 10 additions and 3 deletions
  1. 1
    1
      README-en.md
  2. 9
    2
      frog.cpp

+ 1
- 1
README-en.md View File

@@ -180,4 +180,4 @@ Suppose that all courses in Yauco's University are 3 credits each and have the f
180 180
 
181 181
 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, include the names of the programmers, and document your program.
182 182
 
183
-2. Use "Deliverable 2"  to submit the file `main.cpp` with the code to compute the grade point 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.
183
+2. Use "Deliverable 2"  to submit the file `main.cpp` with the code to compute the grade point 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.

+ 9
- 2
frog.cpp View File

@@ -7,9 +7,10 @@
7 7
 #include "mainwindow.h"
8 8
 #include "ui_mainwindow.h"
9 9
 
10
-//
10
+// ~English/
11 11
 // Constructor for the frog class
12
-//
12
+// ~Spanish
13
+// Constructor de la clase sapo
13 14
 
14 15
 frog::frog(QWidget *parent) : QWidget(parent) {
15 16
 
@@ -19,7 +20,9 @@ frog::frog(QWidget *parent) : QWidget(parent) {
19 20
     myTimer= new QTimer(this);
20 21
     flag = xFlag = false;
21 22
 
23
+    // ~English
22 24
     // These are the x positions of the background?
25
+   
23 26
     temp = 580;
24 27
     temp2 = 0;
25 28
 
@@ -170,8 +173,12 @@ void frog::animate(){
170 173
     float xEnd = 0;
171 174
 
172 175
 
176
+    // ~English
173 177
     // use the functions implemented by the programmer to
174 178
     // compute the x-intercept.
179
+    // ~Spanish
180
+    // use las funciones implementadas por el programador para
181
+    // computar el valor que intercepta la x
175 182
 
176 183
     interX1 = QuadraticMinus(A,B,C);
177 184
     interX2 = QuadraticPlus(A,B,C);