Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JavaScript 20 Write a function that uses the Math.round() method to round any number with a decimal part less than or equal to 0.6 down.
JavaScript
20 Write a function that uses the Math.round() method to round any number with a decimal part less than or equal to 0.6 down. For example, the result of using the program with the number 3.6 should be 3 but the result of 3.69 should be 4. Use a loop to allow the user to enter as many numbers as desired and be sure to use an appropriate sentinel value for the user to end the program.
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