Question
Problem 2 Using Math object; Write a JavaScript code following exactly the sequence structured below: (Note: do not use console.log until the end, to output.
Problem 2 Using Math object; Write a JavaScript code following exactly the sequence structured below: (Note: do not use console.log until the end, to output. Save the file as yourNamemaxOfThree.js) a- Produce a random number b- Make sure that the number is in the interval 0 to 100 (include 100) c- Make sure that the number is the largest integer that is less/equal to the number and consider it the first number d- Get the second number by dividing the first number by 26 Assignment 2 Page 2 of 2 St. Clair College of Applied Arts and Technology e- Make sure that the second number is the smallest integer that is greater/ equal to the number f- Get the third number by subtracting 12 from the second number g- Make sure that the third number is positive h- Find the max of three numbers i- Find the min of three numbers j- Find the average of three numbers k- Find the nearest integer of the average l- Output: a. The random number b. The random between 0 and 100 c. The first integer number d. The second integer number e. The third integer number f. The max g. The min h. The average rounded
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