Purchase Solution

Programing in Java: Fahrenheit to Celsius

Not what you're looking for?

Ask Custom Question

I have to write a Java program that converts fahrenheit to celsius.

The formula is: celsius = (5 / 9) * (fahrenheit - 32)

The program read a Fahrenheit degree in double from the input dialog box then converts it to Celsius and displays the result in a message dialog box.

In Java, 5 / 9 is 0, so I need to write 5.0 / 9 to obtain the correct result.

The program should also convert feet into meters. The program prompts the user to enter a number in feet, converts it to meters, and displays the result. One foot is 0.305 meters.

Purchase this Solution

Solution Summary

This solution provides guidelines on writing a java program that will convert fahrenheit to celsius, and feet into meters.

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Basic Networking Questions

This quiz consists of some basic networking questions.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Javscript Basics

Quiz on basics of javascript programming language.