
I'm having troubles writing a program that upon entering your height in inches it changes your height to feet and inches, and then also shows your height as a decimal.
Thank you!

import java.io.*;
import java.util.*;
class ConvertInches{
public static void main (String[] args)throws Exception{
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the inches: ");
float inches = Float.parseFloat(bf.readLine());
float cm = inches * 2.54f;
double feet = cm/30.48;
double inch = (cm/2.54) - ((int)feet * 12);
System.out.println("There are " + (int)feet + " feet and " + inch+" inches");
}
}

could you simplify it? because I don't exactly know/haven't learned about "BufferedReader". Also the decimal would be a separate answer, after showing the height in feet and inches.