// ****************************************************************** // BaseConversion.java // // Recursively converts an integer from base 10 to another base // ****************************************************************** import java.util.Scanner; public class BaseConversion { public static void main (String[] args) { Scanner scan = new Scanner(System.in); int base10Num; int base; System.out.println (); System.out.println ("\nBase Conversion Program"); System.out.print ("\nEnter an integer: "); base10Num = scan.nextInt(); System.out.print ("\nEnter the base: "); base = scan.nextInt(); // Call convert and print the answer } // -------------------------------------------------- // Converts a base 10 number to another base. // -------------------------------------------------- public static String convert (int num, int b) { int quotient; // the quotient when num is divided by base b int remainder; // the remainder when num is divided by base b // add your code here } }