Question: 2. (60 pts) Write a C program that satisfies the following specifications: Includes a macro that mirrors a function called: float C2K(float temp). It basically
2. (60 pts) Write a C program that satisfies the following specifications: Includes a macro that mirrors a function called: float C2K(float temp). It basically returns the conversion to degree Kelvin when a temperature in Celsius is entered. Includes a macro that mirrors a function called float F2K(float temp). It basically returns the conversion to degree Kelvin when a temperature in Farenheit is entered. Kelvin Celsius+273 Celsius (5/9)(Farenheit-32) Includes a main function that satisfies the following specifications: o o Prompt for user to enter a temperature in either Farenheit or Celsius Output to monitor the conversion to Kelvin
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
