Question: 1. Write a Java program that converts Fahrenheit to Celsius and vice versa. Your program accepts as a parameter a Scanner holding a sequence of
1. Write a Java program that converts Fahrenheit to Celsius and vice versa. Your program accepts as a parameter a Scanner holding a sequence of real numbers (temperature) followed by C or F for which temperature it is, and outputs the converted temperature. You must use "method-calling-method" and "returning result" concepts.
Example:
// input
35.6 C
// output
35.6 C = 96.1 F
Example:
// input
70.2 F
//output
70.2 F = 21.2 C
Step by Step Solution
3.49 Rating (149 Votes )
There are 3 Steps involved in it
Here is required code import javautilScanner public class Temperat... View full answer
Get step-by-step solutions from verified subject matter experts
