1. Write a Java program that converts Fahrenheit to Celsius and vice versa. Your program accepts as...
Fantastic news! We've Found the answer you've been seeking!
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 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
Related Book For
Posted Date: