top of page

Fórmulas de Física

#include<iostream>
using namespace std;
int main ()
{
    
//DECLARACION
double VL, Lf, Li, D, LO, Y, E;

//PROBLEMA 1
cout<<"Calcular la variacion de la longitud \n";
cout<<"_______________________________________\n";

cout<<"Ingrese la longitud final: ";cin>>Lf;
cout<<"Ingrese la longitud inicial: ";cin>>Li;
//PROCESO1
VL=LF-LI;
//RESULTADO1
cout<<"La variacion de la longitud es: "<<VL<<endl;

//PROBLEMA 2
cout<<"______________________________________\n";
cout<<"Calcular la deformacion\n";
cout<<"_______________________________________\n";

cout<<"Ingrese la variacion de la longutud: ";cin>>VL;
cout<<"Ingrese la longitud de origen: ";cin>>LO;
//PROCESO2
D=VL/LO;
//RESULTADO2
cout<<"La deformacion es: "<<D<<endl;

//PROBLEMA 3
cout<<"___________________________________\n";
cout<<"Calcular el modulo de Young\n";
cout<<"___________________________________\n";

cout<<"Ingrese el esfuerzo: ";cin>>E;
cout<<"Ingrese la deformacion: ";cin>>D;
//PROCESO3
Y=E/D;
//RESULTADO3
cout<<"El modulo de Young es: "<<Y<<endl;
cout<<endl;
//system ("pause");
return 0;
// FIN DEL PROCESO
}

Fórmulas de Circuitos Eléctricos

#include<iostream>
#include<stdlib.h>
#include<math.h>
using namespace std;
int main ()
{
    
//DECLARACION
double I, V, R, P, PA, y;

//PROBLEMA 1
cout<<"Calculo de la Intensidad de Corriente";
cout<<"_______________________________________\n";

cout<<"Ingrese el Voltaje: ";cin>>V;
cout<<"Ingrese la Resistencia: ";cin>>R;
//PROCESO1
I=V/R;
//RESULTADO1
cout<<"La Intensidad de Corriente es: "<<I<<endl;

//PROBLEMA 2
cout<<"___________________________________\n";
cout<<"Calcular la Potencia Total\n";
cout<<"___________________________________\n";

cout<<"Ingrese el Voltaje: ";cin>>V;
cout<<"Ingrese la Intensidad de Corriente: ";cin>>I;
//PROCESO2
P=V*I;
//RESULTADO2
cout<<"La Potencia Total es: "<<P<<endl;

//PROBLEMA 3
cout<<"______________________________________\n";
cout<<"Calcular de la Potencia Activa\n";
cout<<"_______________________________________\n";

cout<<"Ingrese la Intensidad de Corriente: ";cin>>I;
cout<<"Ingrese el Voltaje: ";cin>>V;
cout<<"Ingrese el valor del coseno fi: ";cin>>y;
//PROCESO3
PA=I*V*cos(y);
//RESULTADO3
cout<<"La Potencia Activa es: "<<PA<<endl;
cout<<endl;
//system ("pause");
return 0;
// FIN DEL PROCESO
}

© 2023 por Secretos de Armario. Creado con Wix.com

Únete a nuestra lista de correo

No te pierdas ninguna actualización

bottom of page