Question: correct code: Enter the total inches as an integer: 6 inches is 0.50 feet. My code: Enter the total inches as an integer: inches is

 correct code: Enter the total inches as an integer: 6 inches

correct code: Enter the total inches as an integer: 6 inches is 0.50 feet.

My code: Enter the total inches as an integer: inches is 0.50

2. Total Inches to Real Value Feet saved Pyin www . www . .www www. www. Please use printf to print exactly two digits after the decimal point for the real value. The following is a sample run: Enter the total inches as an integer: 18 inches is 1.50 feet. 118 Full Screen 5 InchesToFeet.Java New 1- import java.util.*; 2 public class Inches ToFeet 3 - { 4 public static void main(String[] args) 5- /*make Scanner Object for scan value from user*/ 7 Scanner scanner =new Scanner(System.in); System.out.print("Enter the total inches as an integer:"); int inches = scanner.nextInt(); { System.out.printf(" inches is "+String.format("%.2f", inches/12.0))

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 Databases Questions!