D
Daniel
I need to write a Java function that will convert an arbitrary base to
a decimal. The number needs to be converted into an array of
characters. It needs to use uppercase letters of the alphabet for
input if required by the value of base. Needs to have a void function
to convert it to the proper value of type array of int before
converting it to a decimal.
example given by book:
const int base = 6;
const int numDigits = 4;
int number [numDigits];
The program must be modified with a different base by changing only
the constant base, and the number of digits needs to be modified by
changing numDigits.
This is for a computer systems class , and any help will be greatly
appreciated.
a decimal. The number needs to be converted into an array of
characters. It needs to use uppercase letters of the alphabet for
input if required by the value of base. Needs to have a void function
to convert it to the proper value of type array of int before
converting it to a decimal.
example given by book:
const int base = 6;
const int numDigits = 4;
int number [numDigits];
The program must be modified with a different base by changing only
the constant base, and the number of digits needs to be modified by
changing numDigits.
This is for a computer systems class , and any help will be greatly
appreciated.