Documentos de Académico
Documentos de Profesional
Documentos de Cultura
INGENIERIA INFORMÁTICA
PRÁCTICA
if (opcion == 1)
{
cout << "Ingrese los Grados Centigrados: ";
cin >> num;
cout << num << " Grados Centigrados son " << (num *
1.8) + 32 << " Grados Farenheit " << endl;
cout << num << " Grados Centigrados son " << num +
273.15 << " Grados Kelvin " << endl;
cout << num << " Grados Centigrados son " << (num *
1.8) + 491.67 << " Grados Rankine " << endl;
system("pause");
printf("\n");
}
if (opcion == 2)
{
cout << "Ingrese los Grados Farenheit: ";
cin >> num;
cout << num << " Grados Farenheit son " << (num -
32)/1.8 << " Grados Centigrados " << endl;
cout << num << " Grados Farenheit son " << (num -
32)/1.8 + 273.15 << " Grados Kelvin " << endl;
cout << num << " Grados Farenheit son " << num +
459.67 << " Grados Rankine " << endl;
system("pause");
printf("\n");
}
if (opcion == 3)
{
cout << "Ingrese los Grados Kelvin: ";
cin >> num;
cout << num << " Grados Kelvin son " << num - 273.15
<< " Grados Centigrados " << endl;
cout << num << " Grados Kelvin son " << (num -
273.15)*1.8+32 << " Grados Farenheit " << endl;
cout << num << " Grados Kelvin son " << num * 1.8
<< " Grados Rankine " << endl;
system("pause");
printf("\n");
}
if (opcion == 4)
{
cout << "Ingrese los Grados Rankine: ";
cin >> num;
cout << num << " Grados Rankine son " << (num -
491.67)/1.8 << " Grados Centigrados " << endl;
cout << num << " Grados Rankine son " << num -459.67
<< " Grados Farenheit " << endl;
cout << num << " Grados Rankine son " << num /1.8
<< " Grados Kelvin " << endl;
system("pause");
printf ("\n");
}
if (opcion == 0)
{
return EXIT_SUCCESS;
}
} while (opcion = !0);
getchar();
return 0;
}
FIG.1 PANTALLA EN CONSOLA PRINCIPAL