Question: just need this fixed. 2. Total Inches to Real Value Feet saved Write a program to convert integer inches to a real value feet. For

 just need this fixed. 2. Total Inches to Real Value Feet

just need this fixed.

2. Total Inches to Real Value Feet saved Write a program to convert integer inches to a real value feet. For example, 12 inches is 1.0 feet, 6 inches is 0.5 feet, and 18 inches is 1.5 fee 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: 118 18 inches is 1.50 feet. 1 Full Screen v Grac InchesToFeet.Java New 1- import java.util.Scanner; 2 - public class Inches ToFeet { 3 public static void main(String[] args) { 0/4 5- int main;() { 6 double inches; 7-scanf("%f",inches); { 8 printf("%.21f", inches/12.0); 9 return 0; 10 } 12

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!