Need Help ?

Home / Expert Answers / Other / write-a-program-to-convert-temperature-in-fahrenheit-to-temperature-in-celsiusand-vice-versa-accordi

(Solved): Write a program to convert temperature in Fahrenheit to temperature in Celsiusand vice v ...



Write a program to convert temperature in Fahrenheit to temperature in Celsius
and vice versa according to the user’s preference. The formula for the conversion in one
direction is as follows:
Tc = (5/9) * (Tf – 32)
Check the correctness and allowed scope of the entered data.
Let the user enter data from a file and write the conversion next to the initial value. For
example, if the user needs to convert F to C, create a file named FtoC.txt with random
Fahrenheit values. Read the file from your program and write next to each F value the C
conversion. Do this for CtoF as well.


We have an Answer from Expert

View Expert Answer

Expert Answer


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Question10014
We have an Answer from Expert

Buy This Answer $4

Place Order