-
January 17th, 2014, 11:35 AM
#1
help writing a java application
Write a java application that takes an integer Celsius temperature as input
and converts it to its Fahrenheit equivalent.
The formula is
Fahrenheit = 9/5 Celsius + 32
*You will need to prompt the user to input the temperature in Celsius.
*After the Celsius temperature is input, read in the value and perform the conversion to Fahrenheit.
*Then, output the original, Celsius temperature along with the corresponding Fahrenheit equivalent. (Verify that your program displays the correct result to2 decimal places.)
*The application should include appropriate messages identifying each value.
-
January 20th, 2014, 05:26 PM
#2
Re: help writing a java application
You're lucky.
The very first Swing example (in the Oracle documentation) tells you exactly how.
-
January 29th, 2014, 08:58 AM
#3
Re: help writing a java application
Sorry for not completing your homework for you, please be more specific about exactly which aspect of your problem causes you trouble ?
You are struggling to prompt user ? You failed to read user input? You failed to convert integer or doubles to desired class structure ?
Please.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|