write the pseudo-code, flowcharts and code of program in which You have to take the temperature in Celsius from the user and convert it to Fahrenheit.
If the converted temperature is odd, print the temperature in Fahrenheit. If the converted temperature is
even, covert the Fahrenheit temperature to Kelvin and display it on the screen
PseudoCode:
- Get the temperature indeg. C from user as T_degC
- Convert to Fahrenheit as "T (degF) = \\frac{9}{5} T(deg C) + 32"
- IF T_degF is EVEN,
Then,
Convert T-degF to Kelvin as: "T (degK) = \\frac{5}{9} (T(degF) - 32) + 273"
- Display the Temperature
Comments
Leave a comment