• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Inverting number on drjava

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm taking my first introductory course on computer science and we went over converting Fahrenheit to Celsius.


The above is my code, but I'm getting bunch of errors...I have no idea what I'm doing. Any help would be greatly appreciated.--
 
Bartender
Posts: 1558
5
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Justine,

Welcome to CodeRanch!

Please, TellTheDetails(<-click). Can you please provide more details about what errors are you facing? I found a couple of compilation errors when I copy-pasted your code:
1) degreesInFahrenheit is int and 32.0 is double. You need to make sure that datatypes are same during subtraction.
2) Strangely, the minus sign gave me another error - it looks like some other character than minus sign.

Apart from this, let us know if you face any other issues.

Also, please UseCodeTags(<-click). Code tags can be added by using 'Code' button during writing the post. I've added those for you this time.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic