//Vanessa Ramirez CSC5 Chapter 4, p. 224, #20
//
/*******************************************************************************
* DETERMINE FREEZING AND BOILING
* _____________________________________________________________________________
* This program will ask user to enter a temperature. The progam will determine
* which substances will freeze and which will boil at that temperature.
* _____________________________________________________________________________
* INPUT
* temperature : Temperature entered by user
*
* OUTPUT
* substances : Substances that will freeze or boil
******************************************************************************/
#include <iostream>
#include <iomanip>
using namespace std;
int main()
{
float temperature; // INPUT - Temperature entered by user
// Input
cout << "Enter a temperature: ";
cin >> temperature;
// Determine Substances That Will Freeze
cout << "Substances that will freeze:" << endl;
if (temperature <= -173)
cout << "Ethyl alchohol" << endl;
if (temperature <= -38)
cout << "Mercury" << endl;
if (temperature <= -362)
cout << "Oxygen" << endl;
if (temperature <= 32)
cout << "Water" << endl;
// Determine Substances That Will Boil
cout << "Substances that will boil:" << endl;
if (temperature >= 172)
cout << "Ethyl alchohol" << endl;
if (temperature >= 676)
cout << "Mercury" << endl;
if (temperature >= -306)
cout << "Oxygen" << endl;
if (temperature >= 212)
cout << "Water" << endl;
return 0;
}