Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 files

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

303139688X, 978-3031396885

More Books

Students also viewed these Databases questions

Question

Develop skills for building positive relationships.

Answered: 1 week ago

Question

Describe techniques for resolving conflicts.

Answered: 1 week ago

Question

Give feedback effectively and receive it appropriately.

Answered: 1 week ago