Answered step by step
Verified Expert Solution
Question
1 Approved Answer
need help doing my program. Instructions for Assignment 2: Fahrenheit/Celsius Conversion The second assignment is to demonstrate an initial use of variables. You can write
need help doing my program.
Instructions for Assignment 2: Fahrenheit/Celsius Conversion The second assignment is to demonstrate an initial use of variables. You can write two programs that convert from Fahrenheit to Celsius, and from Celsius to Fahrenheit. Your version must handle fractions of a degree by using the "double" type The equation for converting F to C is: (F-32)*5/9 The equation for converting C to F is: C 9/5+32 Note that in order to do floating point division, one of the operators must be 5.0 or 9.0 (not 9) Make sure you use parentheses to do the correct computation. You can test your code on the following conversions: 10C-50F, 20C-68F, -40C-40F for first program 99.5F-37.5C, and 98.6F-37C. and for second program . The java projects are named yournamef2C and second one yournameC2fF Create a class with the same name for first project and second project respectively .First one yournameF2C converts from Fahrenheit to Celsius and second one yournameC2F converts from Celsius to farenheit The program outputs a pleasant greeting that introduces the program (e.g. "I will convert temperatures for you") The program outputs a meaningful message about the conversion along with the result. . . The program computes the correct result . The program handles "double precision floating point" values like 98.6 or 37.2 . All code is correctly indented. (To fix indents automatically, type Ctri-Shift-F. This also limits line lengths to 80 characters.) . You can zip both projects together and submit as one zip or you can zip both projects separate and submit separate. Make sure that the zip consists of the java filesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started