Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 } 12Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started