Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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