Question: Write a program that displays the dimensions of a letter-size (8.5 x11) sheet of paper in millimeters. The program must include a function, inchesToMM(inches), that

Write a program that displays the dimensions of a letter-size (8.5 x11) sheet of paper in millimeters. The program must include a function, inchesToMM(inches), that accepts a single value in inches, and returns the inches converted to millimeters. The function must also use a constant variable for the conversion factor. The program must also include a second function, displayOutput(), and uses console.log() to display the required formatted output. You will need to call the inchesToMM() function from the displayOutput() function to calculate the millimeters in 8.5 inches and 11 inches. The output should be displayed using the console.log() function. Tip: You can separate the console.log() arguments with a comma to output multiple values on the same output line. console.log("My", "name", "is", "Phil"); Output specification: 8.5 x 11 inches = nn x mm millimeters Where nn is replaced by the 8.5 inches converted to millimeters, and mm is the replaced by the 11 inches converted to millimeters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
