HOMEWORK 1:
Due Date September 20, 2007[20 points]
Write a Java program that converts the following measurements:
▪ The program reads 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 you need to write 5.0 / 9 to obtain the correct result.
The formula is: celsius = (5 / 9) * (fahrenheit - 32)
▪ 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.
▪ The program should also convert Pounds into Kilograms. One pound is 0.454 kilograms.
Sample Output:
The Temperature 32.0 Fahrenheit is 0.0 in Celsius
100.0 Feet is 30.5 Meters
165.0 Pounds is 74.91 Kilograms
Thanks for using my program
Important Notes:
1. The program must be submitted on or before the due date unless the student has a valid excuse. I will deduct 10% for everyday that the assignment is late.
2. Save the program under the name program1.
3. A hardcopy of the program must be submitted with the flash drive, CD, or uploaded to the digital drop box in a folder.
4. The program must include ample documentation to explain its purpose.
5. The declaration and statement sections must be preceded by comments to show the grader where the sections of the program start. (e.g. // Local Declarations).
6. You must include the following information in your documentation: Name, Program number, and Section number, and program due date.
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
Related searches
- homework vs no homework facts
- homework vs no homework statistics
- homework vs no homework article
- photosynthesis homework 1 answer key
- lesson 1 homework practice
- free homework online homework assignments
- lesson 1 homework practice lines
- lesson 1 homework practice answers
- homework or no homework essay
- homework 1 problems timothy johnson
- algebra 1 homework solver
- connect math 1 5 homework answers