Write a switch case statement, write a menu driven program to convert a given temperature from
Fahrenheit to Celsius and vice versa. For an incorrect choice, an appropriate message should be
displayed.
c* (f-32) and
f-1.8*c+32
Answers
Answered by
2
Explanation:
1) Read the temperature value using scanner object as sc. nextInt() and store it in the variable a. In this program, we have the static method celsius(double f), which converts the Fahrenheit temperature into Celsius temperature by using the formula (f-32)*5/9.
Similar questions
India Languages,
7 months ago
Math,
7 months ago
English,
1 year ago
Math,
1 year ago
English,
1 year ago