Write a program that declares constants to represent the number of inches, feet, and yards in a mile. Name the constants INCHES_IN_MILE , FEET_IN_MILE , and YARDS_IN_MILE respectively. Also declare a...

1 answer below »

Write a program that declares constants to represent the number of inches, feet, and yards in a mile. Name the constantsINCHES_IN_MILE,FEET_IN_MILE, andYARDS_IN_MILErespectively. Also declare a variable namedmilesto represent a number of miles. Compute and display, with explanatory text, the value in inches, feet, and yards—for example:4.0 miles is 253440.0 inches, or 21120.0 feet, or 7040.0 yards



When submitting the program for testing/grading, assign the value 4 tomiles.


Answered 3 days AfterJan 23, 2021

Answer To: Write a program that declares constants to represent the number of inches, feet, and yards in a...

Neha answered on Jan 25 2021
132 Votes
class Initials {
public static void main(String[] args) {
char init1 = 'J';
c
har init2 = 'M';
char init3 = 'F';
System.out.println(init1+"."+init2+"."+init3+".");
}
}
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here