Número | Código | Alumno | PC1 | EP |
1 | 2012100211 | AGUIRRE MÜLLER BRAYAN JEISON | 14 | 08 |
2 | 2012200298 | ALVINO LINARES INGRID | ||
3 | 2012100232 | ARNAO ALARCON JUAN SALVADOR | 16 | 12 |
4 | 2012100112 | BARAHONA HUAPAYA MARTIN FERNANDO | 06 | |
5 | 2012100034 | BAUTISTA HUARANCCA JERSON ABEL | 13 | 13 |
6 | 2010200175 | BAUTISTA VENTURA ELVIS RONALD | 14 | 04 |
7 | 2012100122 | CACERES CESPEDES YOSEPH MICHAEL | 09 | 06 |
8 | 2012100212 | CACERES FLORES GIAN FRANCIS | 15 | 05 |
9 | 2010100097 | CANCINO BORDA NICK REISO | ||
10 | 2012100019 | CEBRIAN HERNANDEZ MARX WILIAMS | 14 | 10 |
11 | 2012100214 | CHAVEZ CALLE OSCAR AUGUSTO | 07 | 12 |
12 | 2012100227 | CIRIACO SUSANIBAR NICOLH ANTONY | 14 | 04 |
13 | 2012100110 | CUARESMA TITO LUIS CHRISTIAN | 15 | 01 |
14 | 2012100141 | DELGADO HUANCA OSCAR BRIAN | 09 | 11 |
15 | 2012100132 | GARCÍA ARELLANO CARLOS ABEL | 12 | |
16 | 2012100237 | GUILLEN ASTORAYME JHON MELANIO | 14 | 11 |
17 | 2012100240 | HUAMAN ARANCIBIA FERNANDO HUGO | 15 | 01 |
18 | 2012100245 | LA ROSA ABARCA DEYVI CARLOS | 17 | 06 |
19 | 2009100151 | LEON YAMASAKI IRWIND ALEJANDRO | ||
20 | 2012100244 | LOZANO HUAMANI YUDITH ROSARIO | 14 | 06 |
21 | 2008200129 | MACHACA SAAVEDRA MELINA | 12 | 12 |
22 | 2012100166 | MALDONADO JIMENEZ JOE ABEL | 12 | 11 |
23 | ñaupari | 13 | 07 | |
24 | 2011200129 | OSCCO PUCLLAS BRAYAN EMANUEL | ||
25 | 2010200090 | PRIALE VIVIANO DANIEL JESUS | 11 | 05 |
26 | 2012100262 | QUISPE DIAZ ROBIN ALEXANDRO | 14 | 04 |
27 | 2012100271 | QUISPE QUISPE JANET KETY | 09 | 07 |
28 | 2012100117 | SILVA ZEVALLOS HUGO ELISEO | 12 | 01 |
29 | 2012100084 | SOTELO TOLENTINO IVAN FAUSTINO | 14 | |
30 | 2012100285 | VELASQUEZ HUAMAN YAN KENEDY | 06 | 10 |
2011200196 | VILLEGAS ZEA JORGE LUIS | |||
condor | 17 | 14 | ||
garcia tenorio | 10 | 06 | ||
laurente | 11 | |||
cotrina | 14 | 08 | ||
juan rojas jara | 16 | |||
sanchez hilaseca jorge | 9 |
jueves, 20 de junio de 2013
Notas de practica
Semana 10
#include<iostream>
using namespace std;
int main(){
int x=5;
{
int x=4,y=2;
{
int x=9;
cout<<x<<"\t"<<&x<<endl;
cout<<y<<"\t"<<sizeof y<<endl;
}
cout<<x<<"\t"<<&x<<endl;
}
cout<<x<<"\t"<<&x<<endl;
cin.get();
}
#include<iostream>
#include<string>
using namespace std;
int main(){
cout<<"int:"<<sizeof (int)<<endl;
cout<<"char:"<<sizeof (char)<<endl;
cout<<"float:"<<sizeof (float)<<endl;
cout<<"double:"<<sizeof (double)<<endl;
cout<<"bool:"<<sizeof (bool)<<endl;
cout<<"long:"<<sizeof (long)<<endl;
string cadena="20 de julio de 2013";
cout<<sizeof cadena<<"\t"<<cadena.size()<<endl;
cin.get();
}
#include<iostream>
using namespace std;
int main(){
int x[]={4, 5, 1, 2, 9};
cout<<&x<<endl;
cout<<&x[0]<<endl;
cout<<&x[1]<<endl;
cout<<&x[2]<<endl;
cout<<&x[3]<<endl;
cout<<&x[4]<<endl;
cin.get();
}
using namespace std;
int main(){
int x=5;
{
int x=4,y=2;
{
int x=9;
cout<<x<<"\t"<<&x<<endl;
cout<<y<<"\t"<<sizeof y<<endl;
}
cout<<x<<"\t"<<&x<<endl;
}
cout<<x<<"\t"<<&x<<endl;
cin.get();
}
#include<iostream>
#include<string>
using namespace std;
int main(){
cout<<"int:"<<sizeof (int)<<endl;
cout<<"char:"<<sizeof (char)<<endl;
cout<<"float:"<<sizeof (float)<<endl;
cout<<"double:"<<sizeof (double)<<endl;
cout<<"bool:"<<sizeof (bool)<<endl;
cout<<"long:"<<sizeof (long)<<endl;
string cadena="20 de julio de 2013";
cout<<sizeof cadena<<"\t"<<cadena.size()<<endl;
cin.get();
}
#include<iostream>
using namespace std;
int main(){
int x[]={4, 5, 1, 2, 9};
cout<<&x<<endl;
cout<<&x[0]<<endl;
cout<<&x[1]<<endl;
cout<<&x[2]<<endl;
cout<<&x[3]<<endl;
cout<<&x[4]<<endl;
cin.get();
}
miércoles, 12 de junio de 2013
notas parcial
Número | Código | Alumno | PC1 | PC2 | PC3 | PC4 | EP | EF |
1 | 2012100211 | AGUIRRE MÜLLER BRAYAN JEISON | 08 | |||||
2 | 2012200298 | ALVINO LINARES INGRID | ||||||
3 | 2012100232 | ARNAO ALARCON JUAN SALVADOR | 12 | |||||
4 | 2012100112 | BARAHONA HUAPAYA MARTIN FERNANDO | 06 | |||||
5 | 2012100034 | BAUTISTA HUARANCCA JERSON ABEL | 13 | |||||
6 | 2010200175 | BAUTISTA VENTURA ELVIS RONALD | 04 | |||||
7 | 2012100122 | CACERES CESPEDES YOSEPH MICHAEL | 06 | |||||
8 | 2012100212 | CACERES FLORES GIAN FRANCIS | 05 | |||||
9 | 2010100097 | CANCINO BORDA NICK REISO | ||||||
10 | 2012100019 | CEBRIAN HERNANDEZ MARX WILIAMS | 10 | |||||
11 | 2012100214 | CHAVEZ CALLE OSCAR AUGUSTO | 12 | |||||
12 | 2012100227 | CIRIACO SUSANIBAR NICOLH ANTONY | 04 | |||||
13 | 2012100110 | CUARESMA TITO LUIS CHRISTIAN | 01 | |||||
14 | 2012100141 | DELGADO HUANCA OSCAR BRIAN | 11 | |||||
15 | 2012100132 | GARCÍA ARELLANO CARLOS ABEL | 12 | |||||
16 | 2012100237 | GUILLEN ASTORAYME JHON MELANIO | 11 | |||||
17 | 2012100240 | HUAMAN ARANCIBIA FERNANDO HUGO | 01 | |||||
18 | 2012100245 | LA ROSA ABARCA DEYVI CARLOS | 06 | |||||
19 | 2009100151 | LEON YAMASAKI IRWIND ALEJANDRO | ||||||
20 | 2012100244 | LOZANO HUAMANI YUDITH ROSARIO | 06 | |||||
21 | 2008200129 | MACHACA SAAVEDRA MELINA | 12 | |||||
22 | 2012100166 | MALDONADO JIMENEZ JOE ABEL | 11 | |||||
23 | 2011200129 | OSCCO PUCLLAS BRAYAN EMANUEL | ||||||
24 | 2010200090 | PRIALE VIVIANO DANIEL JESUS | 05 | |||||
25 | 2012100262 | QUISPE DIAZ ROBIN ALEXANDRO | 04 | |||||
26 | 2012100271 | QUISPE QUISPE JANET KETY | 07 | |||||
27 | 2012100117 | SILVA ZEVALLOS HUGO ELISEO | 01 | |||||
28 | 2012100084 | SOTELO TOLENTINO IVAN FAUSTINO | ||||||
29 | 2012100285 | VELASQUEZ HUAMAN YAN KENEDY | 10 | |||||
30 | 2011200196 | VILLEGAS ZEA JORGE LUIS | ||||||
ñaupari | 07 | |||||||
condor | 14 | |||||||
garcia tenorio | 06 | |||||||
laurente | 11 | |||||||
cotrina | 08 |
solucion al parcial
#include<iostream>
#include<cmath>
using namespace std;
int main(){
float a1,a2;
float theta;
float H;
cout<<"Ingrese el vector de iluminacion a=(a1,a2)"<<endl;
cout<<"a1=";cin>>a1;
cout<<"a2=";cin>>a2;
cout<<"Ingrese la altura del hombre h=";cin>>H;
cout<<"Ingrese la elevacion de la ladera (0-90):";
cin>>theta;
theta*=atan(1.0f)/45.0;
float L=a1*H / (a2*cos(theta) + a1*sin(theta));
cout<<"Longitud de la sombra: "<<L<<endl;
cin.get();cin.get();
}
#include<cmath>
using namespace std;
int main(){
float a1,a2;
float theta;
float H;
cout<<"Ingrese el vector de iluminacion a=(a1,a2)"<<endl;
cout<<"a1=";cin>>a1;
cout<<"a2=";cin>>a2;
cout<<"Ingrese la altura del hombre h=";cin>>H;
cout<<"Ingrese la elevacion de la ladera (0-90):";
cin>>theta;
theta*=atan(1.0f)/45.0;
float L=a1*H / (a2*cos(theta) + a1*sin(theta));
cout<<"Longitud de la sombra: "<<L<<endl;
cin.get();cin.get();
}
solucion examen parcial
#include<iostream>
using namespace std;
int main(){
char fil;
int x0,y0;
int dx,dy;
int xf,yf;
int numcols=10,numfils=10;
cout<<"Ingrese posicion inicial (FIL,COL)"<<endl;
cout<<"FIL (A:J)=";cin>>fil;
cout<<"COL (1:10)=";cin>>x0;
switch (fil){
case 'A':case 'a':y0=1;break;
case 'B':case 'b':y0=2;break;
case 'C':case 'c':y0=3;break;
case 'D':case 'd':y0=4;break;
case 'E':case 'e':y0=5;break;
case 'F':case 'f':y0=6;break;
case 'G':case 'g':y0=7;break;
case 'H':case 'h':y0=8;break;
case 'I':case 'i':y0=9;break;
case 'J':case 'j':y0=10;break;
}
cout<<"Ingrese desplazamiento horizontal:";
cin>>dx;
cout<<"Ingrese desplazamiento vertical:";
cin>>dy;
xf=x0+dx;
yf=y0+dy;
if (xf>0){
xf = (xf%numcols==0)?numcols:xf%numcols;
} else {
xf = xf%numcols + numcols;
}
if (yf>0){
yf = (yf%numfils==0)?numfils:yf%numfils;
}
else {
yf = yf%numcols + numcols;
}
switch (yf){
case 1:fil='A';break;
case 2:fil='B';break;
case 3:fil='C';break;
case 4:fil='D';break;
case 5:fil='E';break;
case 6:fil='F';break;
case 7:fil='G';break;
case 8:fil='H';break;
case 9:fil='I';break;
case 10:fil='J';break;
}
cout<<"Posicion final: "<<fil<<xf<<endl;
cin.get();cin.get();
}
using namespace std;
int main(){
char fil;
int x0,y0;
int dx,dy;
int xf,yf;
int numcols=10,numfils=10;
cout<<"Ingrese posicion inicial (FIL,COL)"<<endl;
cout<<"FIL (A:J)=";cin>>fil;
cout<<"COL (1:10)=";cin>>x0;
switch (fil){
case 'A':case 'a':y0=1;break;
case 'B':case 'b':y0=2;break;
case 'C':case 'c':y0=3;break;
case 'D':case 'd':y0=4;break;
case 'E':case 'e':y0=5;break;
case 'F':case 'f':y0=6;break;
case 'G':case 'g':y0=7;break;
case 'H':case 'h':y0=8;break;
case 'I':case 'i':y0=9;break;
case 'J':case 'j':y0=10;break;
}
cout<<"Ingrese desplazamiento horizontal:";
cin>>dx;
cout<<"Ingrese desplazamiento vertical:";
cin>>dy;
xf=x0+dx;
yf=y0+dy;
if (xf>0){
xf = (xf%numcols==0)?numcols:xf%numcols;
} else {
xf = xf%numcols + numcols;
}
if (yf>0){
yf = (yf%numfils==0)?numfils:yf%numfils;
}
else {
yf = yf%numcols + numcols;
}
switch (yf){
case 1:fil='A';break;
case 2:fil='B';break;
case 3:fil='C';break;
case 4:fil='D';break;
case 5:fil='E';break;
case 6:fil='F';break;
case 7:fil='G';break;
case 8:fil='H';break;
case 9:fil='I';break;
case 10:fil='J';break;
}
cout<<"Posicion final: "<<fil<<xf<<endl;
cin.get();cin.get();
}
Suscribirse a:
Entradas (Atom)