/* --------------------------------------------------------------------- ** Exercise Using the Computer 3.5: Temperature Conversion. This program has been designed and started for you. Complete it by filling in the code according to the instructions in the comments blocks below. When you are finished, copy your output into this space. ** --------------------------------------------------------------------- */ /* This program will convert temperatures from degrees Fahrenheit */ /* into degrees Celsius. Input temperature must be above zero. */ #include /* -------------------------------------------------------------------------- Define a constant for absolute zero in Fahrenheit (-459.67). -------------------------------------------------------------------------- */ void main( void ) { double fahr; /* Temperature in Fahrenheit degrees */ double cels; /* Temperature in Celsius degrees */ puts( "\n Temperature Conversion Program" ); /* -------------------------------------------------------------------------- Prompt the user to enter a temperature in degrees Fahrenheit. Use scanf to read it and store it in the appropriate variable. Write a printf() statement that will echo the input. -------------------------------------------------------------------------- */ /* -------------------------------------------------------------------------- Test whether the input temperature is less than absolute zero. If so, print an error comment. If not, calculate the temperature in Celsius by subtracting 32 degrees and multiplying the result by five ninths. Print the answer. Label the output clearly. Use newlines and spaces in your formats to make the output easy to read. -------------------------------------------------------------------------- */ puts( " Normal termination." ); }