Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

What is the purpose of Software Quality Assurance?

Answered: 1 week ago