Answer to Question #1679 in Java | JSP | JSF for anon

Question #1679
Write a Java program that has at least the following two methods. You should thoroughly test your methods on several values.

1- static int baseToDecimal(String num, int radix) - this method should take in a string representing a number and the base (or radix) of that number and should convert that number to its decimal equivalent and return that value as an int. You may assume that radix is a number between 1 and 36.

2- static String decimalToBase(int number, int radix) - this method should take in a decimal number as an int and the base (or radix) you wish to convert that number to and return the String version of the decimal number in that base.



i need this java program be applide by Eclipse IDE for Java Developers



could you please please make sure to use just these code and please make the answer easy because i am beginner in programming and use( just) this code these what i take so far

while
if
boolen
or
and

1++

% i

not!

<

<=

>

=>

==

!=

or//

and &&

String

int length()

char chaeAt(int index)

string to Upper Case()

string to Lower Case()

mathod(subroutines, procedures, functiond)

return_type methodName(comma_delim_list of params)

{

//do stuff

}

boolean is Digit(char c)

int char Toint(char c)

int pow(int num, int power)

int string toint (strings)

lengh

char At

static int parse Int (String s)

string substring(int pos)

string substring(int start, int end)

int index of(char c)

concatenation+

radix
1
Expert's answer
2011-02-25T04:57:11-0500
Your question requires more work than to be done for free. You can submit it as an assignment to our control panel set the deadline and our programmers will assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS