Need help with a program. Please!

I need to make the following program for my intro to c++ class but I am totally stuck. Should I be doing this with a nested if statement?

Here is what I need to do. Im not asking for someone to write the program, just help guide me in the correct direction.



The following table lists the freezing and boiling points of several substances. Write a program that asks the user to enter a temperature, and then shows all the substances that will freeze at that temperature and all that will boil at that temperature. For example, if the user enters -20 the program should report that water will freeze and oxygen will boil at that temperature.

Substance Freezing Point (Fahrenheit) Boiling Point (Fahrenheit)
Ethyl Alcohol -173 172
Mercury -38 676
Oxygen -362 -306
Water 32 212
Topic archived. No new replies allowed.