Write an interactive program that declares a variable name


Assignment

Write an algorithm and flow chart for the following program:

Write an interactive program that declares a variable name inches that converts the inches to feet and inches. For example, if the user inputs 86 inches the program should convert it to 7 feet and 2 inches. Save the program as InToFeet_LastName.

This is the program:

package intofeet_nguema;

import java.util.Scanner;
public class InToFeet_Nguema {

public static void main(String[] args) {
int inches;
Scanner input = new Scanner(System.in);
System.out.print("please enter inches ");
inches = input.nextInt();

int feet = inches/12;
int remainder = inches % 12;

System.out.println(inches + " inches is " + feet + " feet and " + remainder + " inches.");

}

}

Now I want a flow chart and algorithm for this program as the instructor says.

Keep in mind that the algorithm and flowchart must be easy to read and understand. Example, if a person who does not know a lot about programing has to read it, the person must be able to understand the program easily.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write an interactive program that declares a variable name
Reference No:- TGS02660308

Expected delivery within 24 Hours