Está en la página 1de 5

EJERCICIOS DE C++

FORMULA PARA HALLAR EL AREA DEL TRIANGULO #include <iostream> using namespace std; int main() { system ("color b9 " ); nt base; int altura; int area; base = 10; altura = 5; area= (base)*(altura)/2; cout << " HERNANDEZ HUAMAN " << endl; cout << " AREA DEL TRIANGULO " << endl; cout << base << "*" << altura << " / 2 " << " = " << area << endl; system(" pause "); return 0; } FORMULA PARA HALLAR LA ENERGIA CINETICA #include <iostream> using namespace std; int main() { system ("color b9 " ); float densidad; float gravedad; float altura; float Ph; densidad = 25.205; gravedad = 9.8; altura = 15.75; Ph= (densidad)*(gravedad)*(altura); cout << " HERNANDEZ HUAMAN " << endl; cout << " PRESION HIDROSTATICA " << endl; cout << densidad << "*" << gravedad << "*" << altura << " = " << Ph << endl; system(" pause "); return 0; } FORMULA PARA HALLAR LA ENERGIA POTENCIAL ELASTICA #include <iostream> using namespace std; int main() { system ("color b9 " ); float constante; float variacion; float Epe;constante = 25484.205548515 variacion = 95658.848484884; Epe= (constante)*(variacion)*(variacion)/2; cout << " HERNANDEZ HUAMAN " << endl;

cout << " ENERGIA POTENCIAL ELASTICA " << endl; cout << constante << "*" << variacion << "*" << variacion << " /2 " << " = " << Epe << endl; system(" pause "); return 0; }

FORMULA PARA HALLAR LA ENERGIA POTENCIAL GRAVITATORIA # include <iostream> using namespace std; int main () { system ("color b9 " ); int masa; nt gravedad; int altura; int Epg;masa = 100; gravedad = 20; altura = 4; Epg = ( masa ) * ( gravedad ) * ( altura ); cout << " HERNANDEZ HUAMAN " << endl; cout << " ENERGIA POTENCIAL GRAVITATORIA " << endl; cout << masa << " * " << gravedad << " * " << altura << " = " << Epg << endl; system ( " pause " ); eturn 0; }

FORMULA PARA HALLAR DISTANCIA N1 #include <iostream> using namespace std; int main() system ("color b9 " ); double velocidad; double tiempo; double aceleracion; double distancia; velocidad = 5.02356897594984; tiempo = 2.0214569875514656; aceleracion = 20.0235488963199999; distancia = ( velocidad * tiempo )+ ( aceleracion * tiempo * tiempo / 2 ); cout << " HERNANDEZ HUAMAN " << endl; cout << " HALLANDO DISTANCIA " << endl; cout << velocidad << " * " << tiempo << " + " << aceleracion << " * " << tiempo << " * " <<tiempo << " / 2 " << " = " << distancia << endl; system( " pause " ); return 0; }

FORMULA PARA HALLAR LA DISTANCIA N2 #include <iostream> using namespace std; int main() { system ("color b9 " );

float velocidadI; float velocidadF; float tiempo; float distancia; velocidadI = 5.3548445; velocidadF = 2.548484; tiempo = 20.548458548; distancia = ( velocidadI + velocidadF )* tiempo /2; cout << " HERNANDEZ HUAMAN " << endl; cout << " HABLLANDO DISTANCIA #2 " << endl; cout << velocidadI << " + " << velocidadF << " * " << tiempo << " / 2 " << " = " << distancia <<endl; system( " pause " ); return 0; }

FORMULA PARA HALLAR LA POTENCIA HIDROSTATICA #include <iostream> using namespace std; int main() { system ("color b9 " ); double masa; double gravedad; double altura; double Eh; masa = 50.984646846848646846846846886; gravedad = 10.35468464684646846848684; altura = 250.684684416846434549646846; Eh= (masa)*(gravedad)*(altura); cout << " HERNANDEZ HUAMAN " << endl; cout << " POTENSIA HIDROSTATICA" << endl; cout << masa << "*" << gravedad << "*" << altura << " = " << Eh << endl; system(" pause "); return 0; }

FORMULA PARA HALLAR LA VELOCIDAD MEDIA #include <iostream> using namespace std; int main() { system ("color b9 " ); double variacionT; double velocidadF; double velocidadI; double velocidadM; variacionT = 35484.4848448; variacionT = 48484.8484; ( velocidadM ) = ( velocidadF) - ( velocidadI )/( variacionT ); cout << " HERNANDEZ HUAMAN " << endl; cout << " HALLANDO VELOCIDAD MEDIA " << endl;

cout << velocidadF << "-" << velocidadI << " / " << variacionT << " = " << velocidadM << endl; system(" pause "); return 0; }

FORMULA PARA HALLAR LA VELOCIDAD INICIAL #include <iostream> using namespace std; int main() { system ("color b9 " ); float velocidadF; float aceleracion; float tiempo; float velocidadI; velocidadF =5633644.4848458; aceleracion = 5.58484; tiempo = 4564.5544; ( velocidadI ) = ( velocidadF) - ( aceleracion )*( tiempo ); cout << " HERNANDEZ HUAMAN " << endl; cout << " HALLANDO LA VELOCIDAD INICIAL " << endl; cout << velocidadF << "-" << aceleracion << " * " << tiempo << " = " << velocidadI << endl; system(" pause "); return 0; } FORMULA PARA HALLAR LA LEY DE OHMS #include <iostream> using namespace std; int main() { system ("color b9 " ); double resistenciaEdeohms; double Idecorriente; double diferenciaP; diferenciaP = 5334.48458; resistenciaEdeohms = 5.58484; ( Idecorriente ) = ( diferenciaP ) / ( resistenciaEdeohms ); cout << " HERNANDEZ HUAMAN " << endl; cout << " LEY DE OHMS " << endl; cout << diferenciaP << "/" << resistenciaEdeohms << " = " << Idecorriente << endl; system(" pause "); return 0; } MODULO DE CORTE #include <iostream> using namespace std; int main() { system ("color b9 " ); double fuerzaT; double longitud; double variaciondeL; double area;

double modulo; fuerzaT = 254846544.205548515; longitud = 95587658.848484884; variaciondeL = 54684,468464646; area = 6986454.4848; modulo= (fuerzaT)*(longitud)/(variaciondeL)*(area); cout << " HERNANDEZ HUAMAN " << endl; cout << " MODULO DE CORTE " << endl; cout << fuerzaT << " * " << longitud << " / " << variaciondeL << " * " << area << " = " << modulo<< endl; system(" pause "); return 0; }

También podría gustarte