Question: Write a Java class NumericConversion that has the method numericConverter (see below). The numericConverter method will convert a positive integer in a specified base to

Write a Java class NumericConversion that has the method numericConverter (see below). The numericConverter method will convert a positive integer in a specified base to another base. The function should work for bases 2 to 25, using capital alphabetic letters A-O for digits beyond 9. Values of the numbers to be converted should not exceed the equivalent of 263-1. You may not use any existing class or function to do the conversion; you must program the conversion algorithm yourself.

public static String numericConverter(String toBeConverted, int startingBase, int targetBase) {}

The numericConverter function will take a positive integer as a String and return the resulting positive integer as a String. Use startingBase for the base of the number to be converted and targetBase for the base being converted to. You may use a main method for testing purposes, but all of the conversion must take place within the numericConverter function. You may use helper functions to be called within the numericConverter function as you see fit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!