CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2014

    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.

  2. #2
    Join Date
    Jul 2013

    Re: help writing a java application

    You're lucky.

    The very first Swing example (in the Oracle documentation) tells you exactly how.

  3. #3
    Join Date
    Dec 2013

    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 ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.