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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!