A monitor? This displays on the users screen but I’m not sure if that’s what your asking good luck on finding the right answer.
import java.util.Scanner;
public class InchesToFeetInteractive
{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
final int INCHES_IN_FOOT = 12;
int inches = scan.nextInt();
int feet;
int inchesLeft;
feet = inches / INCHES_IN_FOOT;
inchesLeft = inches % INCHES_IN_FOOT;
System.out.println(inches + " inches is " +
feet + " feet and " + inchesLeft + " inches");
}
}
We import the Scanner class and then initialize a new Scanner named scan. We then get an integer representation of inches from the user and calculate the feet and inches from the value entered by the user.
Most likely B. I have not had this question, but it seems most reasonable to me.
Answer:
NO THANKS FOR THAT I WILL NOT JOIN