Monday`s

--Originally published at Edith Santos

What is a monday:

24 hours able to make your week infinite.

Today we had a live conversation with Dave Cormier who talked to us about the security, the advance online and what we thought it was unique and really useful now is completely useless.

 

giphy

 

Really interesting, you can follow Dave on twitter and we will have a different guest every day and i will be talking about the information we discuss.

 

Have a good week guys, enjoy vegetables.

 

Review flip learning

--Originally published at Edith Santos

Hello,

 

This course follows a new rule on the school named flip class, the one that gives you the chance to learn in a different way than the regular bases, on your own rithm, I really enjoy the class because it gave me that change to learn in my own way and my own speed, helping me to develop different skills that the other classes don´t allowed you to.

At the first week I was a little confused because I was not used to it, but once you understand the background of class like that, everything becomes easier and you can manage your time to get the result you´re looking for.

 

Flipped Class :  is an instructional strategy and a type of blended learning that reverses the traditional learning enviroment by delivering instructional content, often online, outside of the classroom. It moves activities, including those that may have traditionally been considered homework, into the classroom. In a flipped classroom, students watch online lectures, collaborate in online discussions, or carry out research at home and engage in concepts in the classroom with the guidance of a mentor.

 

Thanks for reading and the hole blog was part of the flipped class but i really liked t and probably I will continue with the postings and the photos the next semester.

 

 

 

 

 

-Commited Gorilla-

 

 

 


Review flip learning

--Originally published at Edith Santos

Hello,

 

This course follows a new rule on the school named flip class, the one that gives you the chance to learn in a different way than the regular bases, on your own rithm, I really enjoy the class because it gave me that change to learn in my own way and my own speed, helping me to develop different skills that the other classes don´t allowed you to.

At the first week I was a little confused because I was not used to it, but once you understand the background of class like that, everything becomes easier and you can manage your time to get the result you´re looking for.

 

Flipped Class :  is an instructional strategy and a type of blended learning that reverses the traditional learning enviroment by delivering instructional content, often online, outside of the classroom. It moves activities, including those that may have traditionally been considered homework, into the classroom. In a flipped classroom, students watch online lectures, collaborate in online discussions, or carry out research at home and engage in concepts in the classroom with the guidance of a mentor.

 

Thanks for reading and the hole blog was part of the flipped class but i really liked t and probably I will continue with the postings and the photos the next semester.

 

 

 

 

 

-Commited Gorilla-

 

 

 

Final Proyect

--Originally published at Edith Santos

Hello,

Here you will find my final proyect which took me all semester to decide what to do, at the end i worked side by side with a really good friend Martha, the blog that i shared with you some posts ago,

The game is based on Snake from years ago and it took us a while to finish it but at the end it worth it, we share with you the code and its really important to mention that to make it work we download CodeBlocks which helps us to write the code and compile in the same program:

#include <windows.h>
#include <iostream>
#include <conio.h>
#include <cstdlib>
#include <stdio.h>

#define Arriba 72 //Define numeros asociados a las flechas
#define Izquierda 75
#define Derecha 77
#define Abajo 80
#define Esc 27
int cuerpo[200][2];
int n=1, tam=4, x=10, y=12, dir=3, xc=30, yc=15, velocidad=100, score=0, h=1;
char tecla;

void gotoxy(int x, int y) //funcion posicion de “x” y “y”
{
HANDLE hCon;
COORD dwPos;

dwPos.X =x;
dwPos.Y =y;
hCon=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hCon,dwPos);

}
void pintar(){
//lineas
for(int i = 2 ; i < 78 ; i++){
gotoxy(i,3);
printf(“%c”,205);
gotoxy(i,23);
printf(“%c”, 205);

}
//lineas verticales
for(int i = 4 ; i < 23 ; i++){
gotoxy(2,i);
printf(“%c”,186);
gotoxy(77,i);
printf(“%c”, 186);

}
//esquinas
gotoxy(2,3);
printf(“%c”,201);
gotoxy(2,23);
printf(“%c”, 200);
gotoxy(77,3);
printf(“%c”, 187);
gotoxy(77,23);
printf(“%c”, 188);

}
void guardar_posicion(){

cuerpo[n][0]=x;
cuerpo[n][1]=y;
n++; //sigue incrementando
if(n==tam) n=1;

}

void pintar_cuerpo(){

for(int i = 1 ; i < tam ; i++){
gotoxy(cuerpo[i][0], cuerpo[i][1]) ; printf(“*”);

}

}
void borrar_cuerpo(){
gotoxy(cuerpo[n][0], cuerpo[n][1]) ; printf(” “);

}
void teclear(){
if(kbhit()){
tecla=getch();
switch(tecla){
case Arriba:
if(dir!=2)
dir=1;
break;
case Abajo:
if(dir!=1)
dir=2;
break;
case Derecha:
if(dir!=4)
dir=3;
break;
case Izquierda:
if(dir!=3)
dir=4;
break;
}
}

}
void cambiar_velocidad(){
if(score==h*20){
velocidad-=10;
h++;
}
}
void comida(){
if(x==xc && y==yc){
xc=(rand()%73)+4;
yc=(rand()%19)+4;
tam++;
score +=10;
gotoxy(xc,yc);printf(“%c”, 4);

cambiar_velocidad();
}

}
bool game_over(){
if(y==3 || y==23 || x==2 || x==77) return false;//falta signo de O
for( int j = tam – 1 ; j > 0 ; j–){
if(cuerpo[j][0]== x && cuerpo[j][1]== y)
return false;
}
return true;
}
void puntos(){
gotoxy(3,1); printf(“Score %d”, score);
}
int main(){

pintar();
gotoxy(xc,yc);printf(“%c”, 4);

while(tecla != Esc && game_over())
{
borrar_cuerpo();
guardar_posicion();
pintar_cuerpo();

comida();

puntos();
teclear();
teclear();
teclear();
if(dir==1) y–;
if(dir==2) y++;
if(dir==3) x++;
if(dir==4) x–;

Sleep(velocidad);

}
pintar();
system(“pause>null”);
return 0;

}

 

The program works!!!

2016-05-05_0028

It was a hard proyect but at the end we both agreed the results where satisfactory, Martha will share with you the outcome of the other idea we had…

 

Thanks for reading,

 

 

 

 

 

-Free Money-


Final Proyect

--Originally published at Edith Santos

Hello,

Here you will find my final proyect which took me all semester to decide what to do, at the end i worked side by side with a really good friend Martha, the blog that i shared with you some posts ago,

The game is based on Snake from years ago and it took us a while to finish it but at the end it worth it, we share with you the code and its really important to mention that to make it work we download CodeBlocks which helps us to write the code and compile in the same program:

#include <windows.h>
#include <iostream>
#include <conio.h>
#include <cstdlib>
#include <stdio.h>

#define Arriba 72 //Define numeros asociados a las flechas
#define Izquierda 75
#define Derecha 77
#define Abajo 80
#define Esc 27
int cuerpo[200][2];
int n=1, tam=4, x=10, y=12, dir=3, xc=30, yc=15, velocidad=100, score=0, h=1;
char tecla;

void gotoxy(int x, int y) //funcion posicion de «x» y «y»
{
HANDLE hCon;
COORD dwPos;

dwPos.X =x;
dwPos.Y =y;
hCon=GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleCursorPosition(hCon,dwPos);

}
void pintar(){
//lineas
for(int i = 2 ; i < 78 ; i++){
gotoxy(i,3);
printf(«%c»,205);
gotoxy(i,23);
printf(«%c», 205);

}
//lineas verticales
for(int i = 4 ; i < 23 ; i++){
gotoxy(2,i);
printf(«%c»,186);
gotoxy(77,i);
printf(«%c», 186);

}
//esquinas
gotoxy(2,3);
printf(«%c»,201);
gotoxy(2,23);
printf(«%c», 200);
gotoxy(77,3);
printf(«%c», 187);
gotoxy(77,23);
printf(«%c», 188);

}
void guardar_posicion(){

cuerpo[n][0]=x;
cuerpo[n][1]=y;
n++; //sigue incrementando
if(n==tam) n=1;

}

void pintar_cuerpo(){

for(int i = 1 ; i < tam ; i++){
gotoxy(cuerpo[i][0], cuerpo[i][1]) ; printf(«*»);

}

}
void borrar_cuerpo(){
gotoxy(cuerpo[n][0], cuerpo[n][1]) ; printf(» «);

}
void teclear(){
if(kbhit()){
tecla=getch();
switch(tecla){
case Arriba:
if(dir!=2)
dir=1;
break;
case Abajo:
if(dir!=1)
dir=2;
break;
case Derecha:
if(dir!=4)
dir=3;
break;
case Izquierda:
if(dir!=3)
dir=4;
break;
}
}

}
void cambiar_velocidad(){
if(score==h*20){
velocidad-=10;
h++;
}
}
void comida(){
if(x==xc && y==yc){
xc=(rand()%73)+4;
yc=(rand()%19)+4;
tam++;
score +=10;
gotoxy(xc,yc);printf(«%c», 4);

cambiar_velocidad();
}

}
bool game_over(){
if(y==3 || y==23 || x==2 || x==77) return false;//falta signo de O
for( int j = tam – 1 ; j > 0 ; j–){
if(cuerpo[j][0]== x && cuerpo[j][1]== y)
return false;
}
return true;
}
void puntos(){
gotoxy(3,1); printf(«Score %d», score);
}
int main(){

pintar();
gotoxy(xc,yc);printf(«%c», 4);

while(tecla != Esc && game_over())
{
borrar_cuerpo();
guardar_posicion();
pintar_cuerpo();

comida();

puntos();
teclear();
teclear();
teclear();
if(dir==1) y–;
if(dir==2) y++;
if(dir==3) x++;
if(dir==4) x–;

Sleep(velocidad);

}
pintar();
system(«pause>null»);
return 0;

}

 

The program works!!!

2016-05-05_0028

It was a hard proyect but at the end we both agreed the results where satisfactory, Martha will share with you the outcome of the other idea we had…

 

Thanks for reading,

 

 

 

 

 

-Free Money-

Wsq13

--Originally published at Edith Santos

Hello,

Well this time  share with you some of the documents that were part of my exam for the second partial…

 

I had to do 4 programs:

The first one will print a triangle as big as the number you first entered,

#include <iostream>

using namespace std;

int main(){
int superpower=1, a, b, c=0;

cout <<“This program will ask you for 2 numbers and determine the first number raised to the power of the second number”<<endl;
cout <<” enter the first number”<< endl;
cin>>a;
cout <<“enter the second number”<<endl;
cin>>b;

superpower=superpower*a;
c=c+1;

while(c<b){
a=a*superpower;
c=c+1;
}

cout<<a<<endl;

}

2016-05-04_1217

The second program asks you for 2 numbers and multiplies the first one times the second one:

#include <iostream>

using namespace std;

int main(){
int superpower=1, a, b, c=0;

cout <<“This program will ask you for 2 numbers and determine the first number raised to the power of the second number”<<endl;
cout <<” enter the first number”<< endl;
cin>>a;
cout <<“enter the second number”<<endl;
cin>>b;

superpower=superpower*a;
c=c+1;

while(c<b){
a=a*superpower;
c=c+1;
}

cout<<a<<endl;

}

2016-05-04_1220

The third program will give you the fibonacci number that corresponds to the number you entered:

#include <iostream>

using namespace std;

int fibonacci(int n){
if(n==0){
return 0;
}
if(n==1){
return 1;
}
return (fibonacci(n-1)+fibonacci(n-2));
}

int main(){

cout<< fibonacci(6)<<endl;

return 0;
}

2016-05-04_1226

And the four one tells you if the word is a palindrome or not :

#include <iostream>
#include <string>

using namespace std;

bool palindrome(string cadena, int size){
for(i=0, i< (size/2), i++){
return True;
}
return False;
}

int main(){
string cadena;
int size;

cout<< “This program will determine if the word you type is a palindrome”<<endl;
cout<<“please enter a word”<<endl;
getline(cin, cadena);

}

2016-05-04_1232

This was a really good exam even though it was easy but at the moment I didn’t though that at  all, after the exam was when everything came too me so clear haha

 

 

 

Regards

 

-Mute Songs-

 


Wsq13

--Originally published at Edith Santos

Hello,

Well this time  share with you some of the documents that were part of my exam for the second partial…

 

I had to do 4 programs:

The first one will print a triangle as big as the number you first entered,

#include <iostream>

using namespace std;

int main(){
int superpower=1, a, b, c=0;

cout <<«This program will ask you for 2 numbers and determine the first number raised to the power of the second number»<<endl;
cout <<» enter the first number»<< endl;
cin>>a;
cout <<«enter the second number»<<endl;
cin>>b;

superpower=superpower*a;
c=c+1;

while(c<b){
a=a*superpower;
c=c+1;
}

cout<<a<<endl;

}

2016-05-04_1217

The second program asks you for 2 numbers and multiplies the first one times the second one:

#include <iostream>

using namespace std;

int main(){
int superpower=1, a, b, c=0;

cout <<«This program will ask you for 2 numbers and determine the first number raised to the power of the second number»<<endl;
cout <<» enter the first number»<< endl;
cin>>a;
cout <<«enter the second number»<<endl;
cin>>b;

superpower=superpower*a;
c=c+1;

while(c<b){
a=a*superpower;
c=c+1;
}

cout<<a<<endl;

}

2016-05-04_1220

The third program will give you the fibonacci number that corresponds to the number you entered:

#include <iostream>

using namespace std;

int fibonacci(int n){
if(n==0){
return 0;
}
if(n==1){
return 1;
}
return (fibonacci(n-1)+fibonacci(n-2));
}

int main(){

cout<< fibonacci(6)<<endl;

return 0;
}

2016-05-04_1226

And the four one tells you if the word is a palindrome or not :

#include <iostream>
#include <string>

using namespace std;

bool palindrome(string cadena, int size){
for(i=0, i< (size/2), i++){
return True;
}
return False;
}

int main(){
string cadena;
int size;

cout<< «This program will determine if the word you type is a palindrome»<<endl;
cout<<«please enter a word»<<endl;
getline(cin, cadena);

}

2016-05-04_1232

This was a really good exam even though it was easy but at the moment I didn’t though that at  all, after the exam was when everything came too me so clear haha

 

 

 

Regards

 

-Mute Songs-

 

Quiz 5

--Originally published at Edith Santos

Hello,

This time I brought to you another quiz, this one determines if the word you are typing is a palindrome or not.

The first step is to ask fo a word and then double check if its a valid word, then the program take the word and place its backwards to compare if its the same to what they type in the first time, if its true then it prints the word is a palindrome, if its not the same it prints not a palindrome.

Haga click para ver el pase de diapositivas.

This is awesome, and I hope you like them and try to explore more ideas beyond this

 

 

 

-Black Sunshine-