/* This program prints out a conversion table of temperatures, after
prompting the user for upper and lower bounds of the table in Fahrenheit, 
and the temperature difference between table entries. */ 

#include <iostream>
using namespace std;

/* START OF MAIN PROGRAM */
int main() 
{	
	int lower = 0;  /* for the lowest Fahrenheit entry in the table */
	int upper = 0;  /* for the highest Fahrenheit entry in the table */
	int step = 1;   /* for the difference in Fahrenheit between entries */

	/* print a message explaining what the program does: */
	print_preliminary_message();

	/* prompt the user for table specifications in Fahrenheit: */
	input_table_specifications(lower, upper, step);
	
	/* print an appropriate message including an echo of the input: */
	print_message_echoing_input(lower, upper, step);
	
	/* Print the table (including the column headings): */
	print_table(lower, upper, step);
	
	return 0;
}
/* END OF MAIN PROGRAM */


/* FUNCTION TO CONVERT FAHRENHEIT TO CELSIUS */
double celsius_of(int fahr)
{
	return (static_cast<double>(5)/9) * (fahr - 32);
}
/* END OF FUNCTION */
	

/* FUNCTION TO CONVERT FAHRENHEIT TO ABSOLUTE VALUE */
double absolute_value_of(int fahr)
{
	return ((static_cast<double>(5)/9) * (fahr - 32)) + 273.15;
}
/* END OF FUNCTION */

