Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Temperature Conversion Task : Write a computer program that will change a Fahrenheit temperature to Celsius. Write two versions of the program, one in Java

Temperature Conversion

Task: Write a computer program that will change a Fahrenheit temperature to Celsius. Write two versions of the program, one in Java and one in C++.

Input: The temperature in Fahrenheit degrees, provided interactively by the user. The input value will be a real number.

Output: Display the Fahrenheit input temperature and the corresponding Celsius temperature, also a real number. The results may be displayed on the screen. Provide a simple message to explain the output (i.e., one sentence). At least the Java output should be formatted neatly, with one decimal position displayed in the numbers.

Sample output: 212.0 degrees Fahrenheit = 100.0 degrees Celsius.

Programming:

Include at least some documentation in this simple program.

Initial comments at the beginning of each file should provide the program name, your name, and a simple statement of what the program does.

Include one other comment somewhere in each program, either in-line or on a separate line.

Include a meaningful prompt for the user.

To avoid doing data conversions or losing data through integer truncations, use only real numbers in the calculations. A number constant will be treated as a real number if you include a decimal point and a trailing 0.

Submissions: Submit an electronic copy of the of your algorithm fist in the D2L dropbox. Due date is listed above. Then submit the two source code files in the D2L dropbox. Due date is listed above. Algorithm is worth 6 points. Each program is worth 7 points. Include your initials at the beginning of the name of any program submission.

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

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions