Get premium membership and access questions with answers, video lessons as well as revision papers.

There are 2.54 cm in an inch.Declare a constant in java programming language named cmPerInch, with the correct value.Show how it might be used in...

      

There are 2.54 cm in an inch.Declare a constant in java programming language named cmPerInch, with the correct value.Show how it might be used in a calculation to convert inches to cm.

  

Answers


Davis
Final double cmPerinch = 2.54;
Double cm, inches =23.6;
Cm = inches * cmPerInch;

Githiari answered the question on January 26, 2018 at 12:34


Next: What are the values of a, b, c, I, j, k after the following java code is executed inti, j, k; double a, b, c; int n =...
Previous: Whereabouts will the logos be drawn in the following java codes Int a = 10; Int b = 20; drawLogo (paper , a, b); drawLogo(paper, b + a, b...

View More Computer Studies Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions