Write a program that will convert a temperature in Celsius i
Write a program that will convert a temperature in Celsius into a temperature in Fahrenheit. The required conversion accuracy is one decimal digit.
HCS12 Assembly Program Language
With these specifications:
Program specifications: o Main Program specifications: Prompt the user to enter a temperature in Celsius by displaying the following message: Please enter a temperature in Celsius Use the D-Bug12 function \"print fo\" to display the prompt o Use the D-Bug12 function \"GetCmdLine0\" to read in the temperature. The input temperature is an integer value with a maximum of 4 decimal digits. N The input value may be a negative number (a maximum of 4 decimal digits preceded by a sign) o Convert the input string (temperature in Celsius) into a binary number o Call a subroutine named \"c2f\' to convert the temperature to Fahrenheit. o Display the input and converted temperature values in the terminal window in the following format: (Note: The ASCII code of the degree character is 176 or $B0) o Subroutine specifications: There are two subroutines required for this project. Subroutine \"bcd2bin\" converts the input string in to binary for further temperature convertion. Subroutine \"c2f\' converts the temperature to Celsius. (Needs to be able to handle both positive and negative input/output values) Feel free to use additional subroutines if needed.Solution
Thank Youj
