Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help please we use Eclipse Assignment2 DueDate: 01/27/19 11:59pm. Instructions for Assignment 2: Question 1: Fahrenheit/Celsius Conversion (60 points The second assignment is to demonstrate

image text in transcribed

image text in transcribed

help please we use Eclipse

Assignment2 DueDate: 01/27/19 11:59pm. Instructions for Assignment 2: Question 1: Fahrenheit/Celsius Conversion (60 points The second assignment is to demonstrate an initial use of variables. You can write two programs that convert from Fahrenheit to Celsius, and from Cesius to Fahrenheit. Your version must handle frations 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 yournameC2F Create a class with the same name for first project and second project respectively. The program outputs a pleasant greeting that introduces the program (eg,iwil 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.) Question 2 Smallest of Three with User Input (40 points) For this assignment, you have to implement simple user input and think about how best to solve a problem, There are many ways to do this assignment. Some are better than others. Make sure you test your solution with a variety of inputs including all of the examples mentioned in the assignment. If you who had a similar assignment in CSIS 2101, please think about this fresh, and do not look at your previous work. Write a program that reads in three integers and determines and prints the smallest number numerically in the group. The values are NOT necessarily entered in numeric order. The program must prompt the user (using cout) and read the three values from the console (using Scanner). It should then print the message "The smallest value among ca>, , and is , , are replaced by the actual values.). Use only techniques covered in Chapters 1, 2, and 3. You may use the comparison operators"" """", and "

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_2

Step: 3

blur-text-image_3

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

IBM Db2 11 1 Certification Guide Explore Techniques To Master Database Programming And Administration Tasks In IBM Db2

Authors: Mohankumar Saraswatipura ,Robert Collins

1st Edition

1788626915, 978-1788626910

More Books

Students also viewed these Databases questions

Question

1.who the father of Ayurveda? 2. Who the father of taxonomy?

Answered: 1 week ago

Question

Commen Name with scientific name Tiger - Wolf- Lion- Cat- Dog-

Answered: 1 week ago

Question

define the term outplacement

Answered: 1 week ago

Question

describe the services that an outplacement consultancy may provide.

Answered: 1 week ago