//PROGRAMA QUE CALCULA LA DISTANCIA RECORRIDA POR UN AUTO
#include <iostream> using namespace std; int main() { float distancia, velocidad, tiempo; cout << "Digite la velocidad en (Km/H)" << endl; cin >> velocidad; cout << "Digite el tiempo recorrido en (horas)" << endl; cin >> tiempo; distancia = velocidad*tiempo; cout << "La distancia recorrida por el auto fue de:" << distancia << endl; cout << "A una velocidad de:" << velocidad << "KM/H" << endl; cout << "Y un tiempo en carretera de:" << tiempo << endl; system("pause"); return 0; } EJERCICIO N°15 //PROGRAMA QUE CALCULA EL INTERES MENSUAL ECONOMICO #include <iostream> using namespace std; int main() { float C, T, I, CI; cout << "Digite su capital economico" << endl; cin >> C; cout << "Digite la tasa de interes anual que le asignaron" << endl; cin >> T; I = (T / 12); CI = C*(T / 12); cout << "Su tasa de interes mensual es:" << I <<"%"<< endl; cout << "Su mensualidad a pagar es:" << "$" << CI << endl; system("pause"); return 0; } EJERCICIO N°16 //PROGRAMA QUE CALCULA LA CORRIENTE Y VOLTAJE DE CADA UNA DE LAS RESISITENCIAS #include <iostream> using namespace std; int main() { float r1,r2,r3,I,ET=120,re,v1,v2,v3; cout << "INGRESE LAS RESISTENCIAS" << endl; cin >> r1 >> r2 >> r3; re = r1 + r2 + r3; I = ET / re; v1 = I*r1; v2 = I*r2; v3 = I*r3; cout << "LA CORRIENTE ES IGUAL A:" << I << endl; cout << "EL VOLTAJE 1 ES IGUAL A:" << v1 << endl; cout << "EL VOLTAJE 2 ES IGUAL A:" << v2 << endl; cout << "EL VOLTAJE 3 ES IGUAL A:" << v3 << endl; system("pause"); return 0; }