Question: pls do Question 1 and 2 using JavaScript 01. Given the data below: -34, -73, 19, 63, -55, -61, 65, -14, -19, [54, -16, 80,

pls do Question 1 and 2 using JavaScript 01. Given the datapls do Question 1 and 2 using JavaScript

01. Given the data below: -34, -73, 19, 63, -55, -61, 65, -14, -19, [54, -16, 80, 55, -74, 73, 26, 5, -51, -17, -25] Determine if each item in the array is either a positive odd number or negative even number and add it an appropriate array (positive odd or negative even). You should print each array of numbers (positive odd or negative even) to the output area using one statement for each list. You must not hard-code the solution but figure it out mathematically. check if there is a remainder after division of a number Hint: You can use the modulo (%) operator by another. Expected output: Positive Odd: 73, 5, 19, 63 Negative Even: -16, -74, -34, -14 02. The following expression returns a random number between 1 and 6 inclusive i.e. it simulates a die (singular of dice) Math.floor( (Math.random() * 6) + 1) Use this expression to simulate rolling a die 60,000 times and display the frequency with which each face of the die finishes uppermost. Use 6 variables to capture the frequencies and a 6-way nested if ... else... control structure to increment them appropriately. Display the results neatly in your output area. Note your frequencies for the rolls will be different. Sample output: Frequency of die rolls 1: 10128 2: 10060 3: 9868 4: 10029 5: 9946 6: 9969

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!