Question: Java HW # 2 : Write a program that asks the user to enter their height in inches. The program should then convert the inches

Java
HW #2:
Write a program that asks the user to enter their height in inches. The program should
then convert the inches to feet and print out the number of feet and the remaining
inches (Note: 1 foot =12 inches). Two sample runs have been provided.
Enter your height in inches: 63
That is 5 feet and 3 inches.
Enter your height in inches: 72
That is 6 feet and 0 inches.
//CS200:s!e!
//(insert here: Semester, Year)
//Instructor: Y. Gutstein
//HW #x: (Name of HW)
//Due: (insert due date here)
//File name: HeightInches.java
public class HeightInches {
public static void main(String args[]){
//program goes here
}
}
Java HW # 2 : Write a program that asks the user

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!