I'm relatively sucky at programming and I don't even know where to begin on this assignment I have due. If anyone can help it would be much appreciated.
C programming.
Write a C program that defines and tests a function for converting Fahrenheit temperatures to Celsius. Your program should include three functions:
* A conversion function to perform the actual conversion. This function should take one parameter, a double representing a Fahrenheit temperature, and return the equivalent Celsius temperature as a double. (So, for example, your_function(32) should return 0.)
* A convert-and-print function that calls the conversion function and prints its input and output nicely -- for example:
32 degrees Fahrenheit is 0 degrees Celsius
(Don't worry too much about printing appropriate numbers of digits after the decimal point; you can do whatever is easy, or read the man page or other documentation for printf to find out how to get more control.)
* A main function that calls the convert-and-print function at least four times with different inputs that you think will illustrate that the conversion is working right. (So this program is self-contained and doesn't prompt the user for anything!)
I'm good with loops, but this program requires recursion which I'm terrible at. Thanks all