Question: Problem 1. Write an m-file that does C and F temperature conversions. Display a menu like the following to the user (doesnt have to be
Problem 1. Write an m-file that does C and F temperature conversions. Display a menu like the following to the user (doesnt have to be an exact match): Homework 7 Problem 1: Temperature Conversion Calculator Enter your choice from the options below: 1. C -> F Celsius to Fahrenheit 2. F -> C Fahrenheit to Celsius Other choice: Exit Enter choice: Use an if-elseif-else statement to do the temperature conversion and display the result to the user to two decimal places:
Problem 2.
Using the same m-file as for Problem 1, do the same except use a switch-case statement
instead of an if-elseif-else statement.
Tip: After getting Problem 1 to work, much of the input/output code and math code can
be copied to Problem 2.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
