domingo, 18 de noviembre de 2012


                                        TRABAJOS DE LENGUAJE DE             
                                       PROGRAMACION
N° 01
#include <iostream>
using namespace std;
int main()
{
double  densidad;
double gravedad;
double profundidad;
double Ph;


densidad = 1.3;
gravedad = 9.8;
profundidad = 340;
Ph= (densidad)*(gravedad)*(profundidad);
cout << "OVIEDO ALEJANDRO RONY" << endl;
cout << " PRESION HIDROSTATICA" << endl;
cout << densidad << "*" << gravedad << "*" << profundidad << " = " << Ph << endl;
system(" pause ");
return 0;
}

N° 02

#include <iostream>
using namespace std;
int main()
{
double velocidad;
double tiempo;
double aceleracion;
double distancia;

 velocidad = 60;
 tiempo = 45;
 aceleracion = 10;
 distancia = (velocidad * tiempo)+ (aceleracion * tiempo * tiempo / 2);
  cout << " OVIEDO ALEJANDRO RONY " << endl;
 cout << " DISTANCIA I" << endl;
 cout << velocidad << " * " << tiempo << " + " << aceleracion << " * " << tiempo << " * " << tiempo << " / 2 " << " = " << distancia << endl;
 system( " pause " );
 return 0;
}

N°03
#include <iostream>
using namespace std;
int main()
{
float Vinicial;
float Vfinal;
float tiempo;
float distancia;

Vinicial = 35.5;
Vfinal = 85.5;
tiempo = 20.5;
distancia = ( Vinicial + Vfinal )* tiempo /2;
cout << " OVIEDO ALEJANDRO RONY " << endl;
cout << " DISTANCIA II " << endl;
cout << Vinicial << " + " << Vfinal << " * " << tiempo << " / 2 " << " = " << distancia << endl;
system( " pause " );
return 0;
}

N°04
#include <iostream> 
using namespace std;
int main (void)
{
int  masa;
int gravedad;
int altura;
int EPG;
  
masa = 45 ;
gravedad = 10 ;
altura = 15 ;
EPG = ( masa ) * ( gravedad ) * ( altura );  
cout << "OVIEDO ALEJANDRO RONY" << endl;
cout << " ENERGIA POTENCIAL GRAVITATORIA " << endl;
cout << masa << " * " << gravedad << " * " << altura << " = " << EPG << endl;
system ( " pause " );
return 0;
}

N°05
#include <iostream> 
using namespace std;
int main(void) 
float constante;
float variacion;
float Epe;
constante = 2500  ;
variacion = 0.145 ;
Epe= (constante)*(variacion)*(variacion)/2;
cout << " OVIEDO ALEJANDRO RONY" << endl;
cout << " ENERGIA POTENCIAL ELASTICA " << endl;
cout << constante << "*" << variacion << "*" << variacion << " /2 " << " = " << Epe << endl;
system(" pause ");
return 0;
}

N°06
#include<iostream>
using namespace std;
int main()
{
int fuerza;
int longitud;
int area;
int deformacion;
int E;

fuerza = 80;
longitud = 35;
area = 67;
deformacion = 6;
E = (fuerza*longitud)/(deformacion*area);
cout << " OVIEDO ALEJANDRO RONY " << endl;
cout << " MODULO DE YOUNG " << endl;
cout << fuerza << "*" << longitud << "/" << deformacion << "*" << area << "=" << E << endl; 
system( "pause");
return 0;
}

N°07
#include <iostream> 
using namespace std;
int main (void)
{
int trabajo;
int tiempo;
int P;
  
trabajo = 1450 ;
tiempo = 60 ;
P = (trabajo)/(tiempo);  
cout << " OVIEDO ALEJANDRO RONY" << endl;
cout << " POTENCIA " << endl;
cout << trabajo << " / " << tiempo << " = " << P << endl;
system ( " pause " );
return 0;
}

N°08
#include <iostream> 
using namespace std;
int main() 
double  densidad;
double gravedad;
double profundidad;
double Ph;


densidad = 1.3;
gravedad = 9.8;
profundidad = 340;
Ph= (densidad)*(gravedad)*(profundidad);
cout << "OVIEDO ALEJANDRO RONY" << endl;
cout << " PRESION HIDROSTATICA" << endl;
cout << densidad << "*" << gravedad << "*" << profundidad << " = " << Ph << endl;
system(" pause ");
return 0;
}

N°10
#include <iostream> 
using namespace std;
int main() 
{   
int base;
int altura;
int area;
base = 25;
altura = 34;
area= (base)*(altura)/2;
cout << " OVIEDO ALEJADRO RONY " << endl;
cout << " AREA DEL TRIANGULO " << endl;
cout << base << "*" << altura << " / 2 " << " = " << area << endl;

system(" pause ");
return 0;
}




No hay comentarios:

Publicar un comentario