Meaningless Drivel is fun!*
The moose likes Beginning Java and the fly likes How to use method pow()? [based on resistance value question] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

How to use method pow()? [based on resistance value question]

may tan
Greenhorn

Joined: Jul 22, 2005
Posts: 22
Hello Pple..

Hmm.. anyone knows of a simple yet efficient ways to
calculate resistance values of a resistor with 3 color bands??

Means user enter 3 color into textfield:
eg: red, orange, grey.
so the program will calculate total value entered by user.

The value for red - 2, orange - 3, brown - 1.

i know i need to use the method pow() for multiplier.
But i'm not very sure what to be types inside..

Thanks for your attention!!
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Double post, please respond here


Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use method pow()? [based on resistance value question]
 
Similar Threads
getContextPath()
How to fill in color?
Calling a Hashtable from another class.
How to calculate resistance values of a resistor with 3 colour bands?
Math problems