Computer Science, asked by prathyushagovindraj, 8 months ago

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 gauravarduino
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