Question: Write a script that will prompt the user for a temperature in degrees Celsius. Then the program prompts the user with the desired conversion; an
Write a script that will prompt the user for a temperature in degrees Celsius. Then the program prompts the user with the desired conversion; an 'F' for Fahrenheit or 'K' for Kelvin. The script will print the corresponding temperatures in the scale specified by the user. For example, the output might look like this: >>Enter the temp in degrees C: 29.3 >>Do you want K or FPF >>The temp in degrees F is 84.7 >> The format of the output should be exactly as specified. The conversions as follow: F C +32 KC + 273.15 Write the script using nested if-else statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
