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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment