This is the Answer, but i have not include conditional statements to check weather the inputs are correct, for correct inputs this works fine
here is the code :
public class Convertor {
public Convertor() {
}
public static void main(String args []){
Convertor conv = new...