Question: Matlab please 4) [5 pts] Write a program that will prompt the user for a temperature in degrees Celsius. Then ask the user whether the
4) [5 pts] Write a program that will prompt the user for a temperature in degrees Celsius. Then ask the user whether the temperature should be converted to Fahrenheit or Kelvin. Tell the user to enter F for Fahrenheit and K for Kelvin. Use 'swich/case' structure to perform the conversion. Then the script will print the corresponding temperapare in the scale specified by the user. If the user enters something other than F or K display an error message. The format of the output should be exactly as specified below. Show the output for every case. F59c+32kc+273.15
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
