pls help!!im java newbie

Discussion in 'Java' started by johnmeyer, Mar 13, 2012.

  1. johnmeyer

    johnmeyer New Member

    Joined:
    Mar 13, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Pls help!!im jave newbie....anyone can help me to solve tis simple question???i need the whole step.
    Urgent!!:cryin::cryin::cryin:
    Write a java program to convert temperature degree from Celsius to Fahrenheit and vice versa,-You are required to display a message to the user asking for whether to convert to Celsius or Fahrenheit degree-If the user chose to convert from Celsius degree to Fahrenheit degree then use the following formula: ((9.0 / 5.0) * CELS) + 32.0- If the user chose to convert from Fahrenheit degree to Celsius degree then use the following formula: 5.0/9.0*(FAHR-32)-Your program should handle users input as the following-- F or f for converting from Celsius to Fahrenheit -- C or c for converting from Fahrenheit to Celsius-- Any other input the program should display a notification that the input is invalid.- Use JOptionPane class to interact with the user - Break down your code into smaller methods --A method to handle the conversion from Celsius to Fahrenheit --A method to handle the conversion from Fahrenheit to Celsius.-Test you program for the following temperatures -- 38C-- 80F
     
  2. johnmeyer

    johnmeyer New Member

    Joined:
    Mar 13, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    Write a program to convert temperature degree from Celsius to Fahrenheit and vice versa,

    **You are required to display a message to the user asking for whether to convert to Celsius or Fahrenheit degree

    **If the user chose to convert from Celsius degree to Fahrenheit degree then use the following formula: ((9.0 / 5.0) * CELS) + 32.0

    **If the user chose to convert from Fahrenheit degree to Celsius degree then use the following formula: 5.0/9.0*(FAHR-32)

    **Your program should handle users input as the following
    -F or f for converting from Celsius to Fahrenheit
    -C or c for converting from Fahrenheit to Celsius
    -Any other input the program should display a notification that the input is invalid.

    **Use JOptionPane class to interact with the user

    **Break down your code into smaller methods
    -A method to handle the conversion from Celsius to Fahrenheit
    -A method to handle the conversion from Fahrenheit to Celsius.

    **Test you program for the following temperatures
    -37C
    -80F
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice