Respuesta :
The program is an illustration of a sequential program
What are sequential programs?
Sequential programs are programs that do not require loop or iteration
The main program
The program written in Java, where comments are used to explain each line is as follows:
import java.util.*;
public class Main{
public static void main(String[] args) {
//This creates a Scanner object
Scanner input = new Scanner(System.in);
//This prompts the user for length in cm
System.out.print("Length (cm): ");
//This gets the input for length
int lengthCM = input.nextInt();
//This converts the length to inches
int lengthInches = (int)(Math.round(lengthCM/2.54));
//This converts the length to yards
int lengthYard = lengthInches/36;
//This converts the remaining length to feet
int lengthFeet = (lengthInches -36 * lengthYard)/12;
//This calculates the remaining inches
lengthInches = lengthInches - lengthYard * 36 - lengthFeet * 12;
//This prints the required output
System.out.print(lengthYard+" yards, "+lengthFeet+" feet and "+lengthInches+" inches");
}
}
Read more about sequential programs at:
https://brainly.com/question/17970226