I am supposed to put two functions in a header file set. I am supposed to generate a table converting celsius to fahrenheit and fahrenheit to celsius. However, I don't know how to utilize my .h file in my .cpp file. Can someone help me connect the two somehow? Please explain it in an easy to understand way because I am only a beginner. I tried reading tutorials but i just don't understand. Any help is appreciated! Thanks in advance :)
Below is the code in my .h file...I have also included the code in my .cpp file below that.
the problem is my table is not outputting the correct results. it seems like the calculations my program is supposed to make is not getting put into the table at all
its supposed to be a table that displays celsius converted to fahrenheit showing both values side by side with another table that says fahrenheit converted to celsius. for celsius to fahreneheit it should be 40.0 C down to 31.0 C and the conversions. for fahrenheit to celsius it should be 120.0 F down to 30 F. also i edited my code
header:
The header:
* Remove lines 1 and 3, for they are not used.
* Recheck the equations.
The main:
* Lines 4, 11-16 have no purpose.
* Line 18. You said "from 40 to 31", but the code does "from 0 to 100 in steps of 5".
* Line 22. You said "from 120 to 30", but the code does "from 32 to 215 in steps of 5".