Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

How was their resistance overcome?

Answered: 1 week ago

Question

3. What strategies might you use?

Answered: 1 week ago