Question: HW #_5_LZ Conversion with Functions if] Design, create, and test a program which converts degrees Fahrenheit to degrees Centigrade (Celsius). Th r m t in
![HW #_5_LZ Conversion with Functions if] Design, create, and test a](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/10/670fe3b71c2a1_582670fe3b6b2c0f.jpg)

HW #_5_LZ Conversion with Functions if] Design, create, and test a program which converts degrees Fahrenheit to degrees Centigrade (Celsius). Th r m t in n m in r r m n f n ti n : F200 and 02F() and instrugtionsi). The user will be asked to en er a numeric code to determine the operation. if the input code = 1. then convert F to C. if the code = 2, then convert C to F, ii the input code = 3. then display instructions. and if the code = 4. then quit. The program should be in a \"loop" that repeatedly performs conversions until the user quits. then the program stops. Display the instructions one time when the program starts (or whenever the user enters code = 3). Keep inputs and outputs (except for instructions) in the main program. Use F260 and CZFO to perform conversion only. Here is a sample output ..... This program converts temperature readings from Centigrade to Fahrenheit. Please enter the numeric code to determine the operation. Code = 1 Convert Fahrenheit to Centigrade Code = 2 Convert Centigrade to Fahrenheit Code = 3 Display Instructions Code = 4 Quit Enter code > 1 Enter degrees in Fahrenheit > 70 21.1 degrees Centigrade Enter code > 0 R. Ammo 15 HW #5.2 Conversion with Functions - 2 Here is suggested architecture and pseudocode // define function prototypes (there are 3 separate functions //call function to display instructions instructions(); 0 if & it)else while ( 1 ) // repeat instructions until user enters code of 4 switch / case ask user to enter a code R integer if ( code = = 1) ask user for degrees F joutput call function to convert to degrees C (ex: degC = F2C( degF ); ) display degrees C ~ if ( code = = 2) ask user for degrees C S * output input call function to convert to degrees F (ex: degF = C2F( degC ); ) display degrees F if ( code = = 3) J call function to display instructions If (code = = 4) terminate program (ex: return 0;) OR. Avanzati 16 } // define functions below the main function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
