I was wondering if anybody could help me with this problem I have no idea how to write or start or anything. PLEASE! Thanks so much
Write a structured program with procedures which provides the options of converting a number from base 8 to 10 and from base 10 to 8. It is a good idea to have a procedure for each option. Assuming the user only input integers, the program should make sure the input number is valid, and return an error message if a mistake is made. For example, 967 is invalid for a number of base 8. Hint: Make use of the pre-dened string functions as much as possible (http://java.sun.com/j2se/1.4.2/docs/api/), except Integer.toOctalString(.). The algorithms for conversion between bases are in 3 primitive-data. For coding, to convert '0' (a character) to 0 (a number), do the following: (int)'0'-48 To convert an integer i to a string do: Integer.toString(i);