top of page
  • Black Facebook Icon
  • Black Instagram Icon
  • Black Twitter Icon

Fórmulas de Física

Programación en Dvc++

#include<iostream>

#include<math.h>

using namespace std;

int main ()

{

                //CALCULO DE LA DEFORMACION UNITARIA

                               cout<<"CALCULO DE LA DEFORMACION UNITARIA"<<endl;

                               cout<<"*****************************************"<<endl;

                                               //DECLARACION

                                               double L, l, df ;

                                               //ASIGNACION

                                               cout<<"Ingrese la longitud inicial: "<<endl ; cin>>l;

                                               cout<<"Ingrese la variacion de la longitud: "<<endl ; cin>>L;

                                               //PROCESO

                                               df=(L)/(l);

                                               //RESULTADO

                                               cout<<"La deformacion unitaria es: "<<df<<endl;

                //CALCULO DEL AREA

                                cout<<"CALCULO DEL AREA"<<endl;

                               cout<<"******************************************"<<endl;

                                               //DECLARACION

                                               double A, pi, r ;

                                               //ASIGNACION

                                               cout<<"Ingrese el radio: "<<endl ; cin>>r;

                                               //PROCESO

                                               A=(pi)*(pow(r,2));

                                               //RESULTADO

                                               cout<<"El area es: "<<A<<endl;

               

                //CALCULO DEL ESFUERZO

                               cout<<"CALCULO DEL ESFUERZO"<<endl;

                               cout<<"*******************************************"<<endl;

                                               //DECLARACION

                                               double F, E ;

                                               //ASIGNACION

                                               cout<<"Ingrese la fuerza: "<<endl ; cin>>F;

                                               //PROCESO

                                               E=(F)/(A);

                                               //RESULTADO

                                               cout<<"El esfuerzo es: "<<E<<endl;

                //CALCULO DEL MODULO DE YOUNG

                               cout<<"CALCULO DEL MODULO DE YOUNG"<<endl;

                               cout<<"*******************************************"<<endl;

                                               //DECLARACION

                                               double Y ;

                                               //ASIGNACION

                                              

                                               //PROCESO

                                               Y=(E)/(df);

                                               //RESULTADO

                                               cout<<"El Modulo de Young es: "<<Y<<endl;

                                              

}   //FIN DEL PROCESO

© 2023 by Extreme Blog. Carlos Eduardo Mina Vilca

  • Grey Facebook Icon
  • Grey Instagram Icon
  • Grey Twitter Icon
bottom of page