Old Lady trying to learn, Help please!

Hello from this newbie! At 57 I have returned to college. I really am trying to understand Java.
Below is the problem I need to answer, and my code. Can someone please explain what I am doing wrong in plain english, and give suggestions to fix it? I don't want anyone to do the code, but explain what code I need, where, and why.
Thanks in advance of replies...
The assignment states...
"Your worker class will handle both Fahrenheit to Celsius and Celsius to Fahrenheit. Your application class will read in a single value and perform both calculations on that value and output both results. Please use JOptionPane methods for input and output."
//My First Class
//   MAIN
import javax.swing.JOptionPane;
public class ConversionApp
//      METHODS
     private void convertCelciusToFarenheit(double){
     private void convertFarenheitToCelcius(double){
     public static void( String[] args);
     String input = JOptionPane.showInputDialog(null, "Enter which temperature you wish to convert using C or F:");
    String degrees = Double.parseDouble(input);
    if(degrees.equals("C"));
    String input1 = JOptionPane.showInputDialog(null, "Enter Temperature in Celsius to convert:");
    if(degrees.equals("F"));
    String input2 = JOptionPane.showInputDialog(null, "Enter Temperature in Fahrenheit to convert:");
     String FtoC;
     public static double convert(String farenheit){
         double temp = Double.parseDouble( farenheit);
         return ( double ) ( 5.0 / 9.0 * ( temp - 32 ) );
         JOptionPane.showMessageDialog( null, FtoC + " degress Farenheit is " + result + " degrees Celcius",
                 "Conversion Results", JOptionPane.INFORMATION_MESSAGE );
     public int CtoF;
    public static double convert(String celsius){
        double temp = Double.parseDouble( celsius);
        return ( double )  ( temp * 9.0 / 5.0 ) + 32 ;      
        JOptionPane.showMessageDialog( null, CtoF + " degress Celcius is the same as " + " result  " +
        "degrees Farenheit", "Conversion Results", JOptionPane.INFORMATION_MESSAGE );
// My Second Class...
public ConversionWorker {
String FtoC;
     public static double convert(String farenheit){
         double temp = Double.parseDouble( farenheit);
         return ( double ) ( 5.0 / 9.0 * ( temp - 32 ) );
     public int CtoF;
    public static double convert(String celsius){
        double temp = Double.parseDouble( celsius);
        return ( double )  ( temp * 9.0 / 5.0 ) + 32 ;      
}

>private void convertCelciusToFarenheit(double){
     private void convertFarenheitToCelcius(double){
Ok, in here I think you want something like:
public void convertCelciusToFarenheit(double degree)That way, you can then use the number passed as a parameter (degree) in that method, and do math on it. And you need to fix this:
>     public static void main( String[] args)In the future, post exactly what errors you are getting.

Similar Messages

  • TS2529 Im am using Windows 7 ,I log onto to itunes and connect my Iphone.When my iphone tries to sync it gives an error message "itunes has stopped working" - this only happens when i connect my iphone and it tries to sync - help please

    Im am using Windows 7 ,I log onto to itunes and connect my Iphone.When my iphone tries to sync it gives an error message "itunes has stopped working" - this only happens when i connect my iphone and it tries to sync - help please

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Why can't I turn on the iCloud back up on my iOS 7.4 device? Works fine on my old 4s phone still. Help please !

    Have recently started backing up my devices using iCloud and successfully done so
    with iPhone 5 and iPhone 4S ( I have 2 phones ) Recently my iPhone 5 will not unlock the iCloud back up - the button just won't slide to open. All is
    fine on the 4s. Nothing has been changed that I'm aware of, can anybody help please ?

    Have recently started backing up my devices using iCloud and successfully done so
    with iPhone 5 and iPhone 4S ( I have 2 phones ) Recently my iPhone 5 will not unlock the iCloud back up - the button just won't slide to open. All is
    fine on the 4s. Nothing has been changed that I'm aware of, can anybody help please ?

  • Hi All  i have a ipod shuffle and it won't charge have tried everything  any help PLEASE  thank you

    Have plugged ipod shuffle in computer  but it says that no ipod is reconized   why i don't know
    when i plug it in itune should come up but doesn't
    any help please
    ps i'm a women  as easy as poss lo
    thank you

    Karen,
    Sorry to here, i have my 4th Shuffle in a year time so best in that situation is to go to serveice and let them send you a new one. I must say that's the best part of the IPOD, the service
    Good luck
    Pedro

  • Old School trying to learn New School HELP!

    Once upon a time, a long long time ago I created a web site for the toy Furby based upon the things my five children and I discovered about the doll.
    This site was created by learning HTML and doing all coding by hand.
    The history of the site is mentioned on some web pages today, (google "Furbyinfo.com" for details.
    Now here we are some 11 years later and I find myself once again learning HTML and am confused by the plethora of acronyms, style sheets, java scripts, and so on.  I purchased Dreamweaver 5 and I was hoping this would make my journey down the HTML memory lane much easier but in fact, I am not finding this to be true.
    So I bought a book "Sams teach yourself Dreamweaver CS5" in 24 hours...  Well I have been reading it for 3 weeks now Sam and I ain't getting much better...
    So I bought another book, "Adobe Dreamweaver CS5 Bible"  Yeah, it's a lot like reading the Real Thing, In the book of Joeseph Lowery Chapter 3 verse 17 I am sure I might find the knowledge I seek, but today, I can't seem to fix what I thought should be easy.
    Specifically I thought CSS was a way to define something "site wide" so that you only have to edit the content and not the colors, fonts, etc...
    Well I must be doing something wrong because none of my 7 or 8 pages are uniform.
    Now too, depending on the type of browser viewing my site you get my right sidebar appearing down below my left sidebar.
    If I add a page and put its link on the index page of my site, I find I have to manually add the link on the left nave bar to every page.
    It is tedious, and not intuitive at all.
    My email address is [email protected] if anyone would care to mentor me perhaps we could trade training for content writing.
    I am an excellent writer and given a subject I can fill pages with informative words designed to keep the attention of a reader, but for the life of me I can't seem to make my website sexy.
    Please help
    www.thecollectivecloud.com
    Thank You.
    Leah T

    This should really help you: http://www.w3schools.com/

  • ITunes doesn't recognize my iPod. I tried everything. Help please?

    I have a new iPod touch and i tried to syncronize it with itunes but itunes and my computer don't recognize my iPod. What should i do? I've already reinstall iTunes and it's the same :s

    iOS: Device not recognized in iTunes for Windows
    iOS: Device not recognized in iTunes for Mac OS X

  • E mac makes strange noises then only starts after 10 tries... help please

    Hi all...
    I have an emac, purchased in 2003, running os x 10.4.6
    i am having trouble turning it on and it is just getting worse.. i know little about computers so any help would be greatly appreciated
    when i press the power on button it does a number of things including the light flashing sometimes, it makes strange beeping noises etc.. it changes each time i try to turn it on... whilst making these noises you can hear the fan etc turn on but the screen stays totally blank (off).no display at all. I'm sure this is not good for my computer but the only thing i can then do (i think) is to pull it out at the power point and try and turn it on again. After doing this about 10 times the computer normally turns on....
    any help would be greatly appreciated! i've done a whole erase and reinstall of os x and it made no difference
    thanks!

    pamism,
    Welcome to the Apple Discussions!
    Odd beeps and the power light flashing suggest some form of RAM or logic board problem; see Power On Self-Test Beep Definition to determine which applies. Has the Mac been subjected to any recent power surges that might have damaged the RAM or logic board? If the beeps/flashes indicate a problem with the RAM, it may be worthwhile to pull the RAM DIMMs and reseat them firmly in the sockets (as described in eMac - Do-It-Yourself). Applying a small amount of contact cleaner (try any local electronics shop) would be helpful as well.

  • I cannot update or buy apps as it always says you need to verify password by email but no matter how many times I ask I cannot get the email.  Help please

    I cannot do upgrades or buy apps as it keeps asking me to verfy my password by email but I cannot get Apple to send the email.  I have tried repeatedly.  Help please.

    I seen this many times, and in just about all cases, it's the user resetting a different AppleID than what's being used for the iTunes account.

  • HT1349 hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    hi guys i have 2 ? 1 my daughters iphone is trying to update on my mac cant get it off help please ,,, 2 i have an old apple id and when i try to up date it keeps looking for the password how do i delete this old apple id help

    Hi.
    I had a similar problem myself. This is what helped me.
    I went to the App store app, scrolled to the bottom, logged out of the account, re logged in with my Apple ID.  Then went back to app updates. Once I put in my ID password all was fine.

  • Hi, I've just started as a fresher in sap fico and I'm upto the LSMW part and I'm wondering why I keep getting an error in Run batch step when I do everything else correct could you help?  Please help I'm really trying to learn it as fast as possible

    Please help I'm really trying to learn it as fast as possible?  I've posted the file with all my screen shots going through the enitre process of me creating the LSMW file.

    First, I will try to address the iPod issue: If youve tried EVERYTHING on the website, your only other option is probably to contact Apple, I recommend by phone, and informing them of the problem. You are covered by warranty and therefore they are liable to assist you. Try that and come back with a status update
    Now I will address your attitude about it:Its absolutely understandable to be upset over something like this, especially with such an expensive product, but you are generalizing far to much. You may think Apple is being unproffesional by not warning potential buyers of the iPods common faults, but do you really think they would? they are out to sell these things, they arent going to point out the bad in their product. And not all iPods have problems, in fact only a fraction do. That gopes for the rest o Apples products as well. You are too hasty assuming all Apple products are junk, and one of many reasons as to why that is unfair of you is becuase you dont own any other Apple products.

  • Upgraded to lion on my 2009 summer macbook pro, now no memory left. something is screwy ...please help an old lady out..

    upgraded to lion on my 2009 summer macbook pro, now no memory left. something is screwy ...please help an old lady out..

    By memory, do you mean space on your hard disk?
    If so, here is one resource:
    Freeing space on your Mac OS X startup disk
    Or do you really mean memory - i.e,, RAM?
    In any case, what occurs that makes you think your "memory" is gone?
    charlie

  • Dear sony, During the last down time i tried to sign into my account then an error message appeared and my saved password was removed, I don't remember my old password and my birth day, please help me

    Dear sony, During the last down time i tried to sign into my account then an error message appeared and my saved password was removed, I don't remember my old password and my birth day, please help me

    go to
    https://iforgot.apple.com/password/verify/appleid?language=US-EN&returnURL=https ://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa&app_id=93&app_type=ext
    and anter your apple is and then go to your main id and reset

  • I cannot install the latest version of itunes as I have old versions of bonjour and quicktime. I can't remove these programs either. Help please as I have tried almost everything I have found so far on the the web.

    I cannot install the latest version of itunes as I have old versions of bonjour and quicktime. I can't remove these programs either. Help please as I have tried almost everything I have found so far on the the web.

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour and QuickTime entries and click "Remove".
    Quit out of CleanUp. Restart the PC, and try another iTunes install. Does it go through properly this time?

  • Okay..I've been trying to fix this for DAYS now!  When I sign in (under settings) w my new apple ID, then go to update or purchase something I cannot get the new apple ID to come up.  It's still using the old one (which is disabled) ..please help!

    Can someone pls help me??  Okay..I've been trying to fix this for DAYS now!  When I sign in (under settings) w my new apple ID, then go to update or purchase something I cannot get the new apple ID to come up.  It's still using the old one (which is disabled) ..please help!

    Delete what? The ID's? They cannot be deleted - you just quit using it.
    If you still have one old ID - that you have purchased content with - you are saying that the password no longer works with that ID? Did you try to reset the password for that ID?
    Read this - instructions if the ID was disabled for entering the wrong password.
    http://support.apple.com/kb/TS2446?viewlocale=en_US&locale=en_US
    If it gets too involved - you can always contact support.
    http://www.apple.com/support/appleid/
    Just do not create another ID!

  • HT201269 i am trying to get my contacts from an old iphone 3s to a 5c and i am not getting the new phone to stay connected to itunes. some help please on what to do!

    i am trying to get my contacts from an old iphone 3s to a new 5c and i am not getting the new phone to stay connedted to itunes. some help please on  this problem!!!

    One way is to Drag and Drop the  Entire iTunes Folder  from your Old Computer to an External Hard Drive...
    Then Drag and Drop the  Entire iTunes Folder to the location of your Music on the New Computer...
    These Links may Help...
    Backup iTunes to an External Drive
    http://support.apple.com/kb/HT1751
    Moving iTunes Media Folder
    http://support.apple.com/kb/HT1364
    Cheers

Maybe you are looking for