Question: Use Java Script 2. (5 points) Start with an array called inputtable. The array should have the numbers between 1 and 10 inclusive. NOTE: You

Use Java Script  Use Java Script 2. (5 points) Start with an array called

2. (5 points) Start with an array called inputtable. The array should have the numbers between 1 and 10 inclusive. NOTE: You may not use a "FOR" loop, even here, the problems should be done in a functional manner. For examples, see the link provided above (hint hint). 3. (30 points) Use inputtable to create the following: a. Set of multiples of 5 between 1 and 51. Name it fiveTable b. Set of multiples of 13 between 1 and 131. Name it thirteen Table c. Set of squares of the numbers in inputtable. Name it squaresTable 4. (10 points) Get the odd multiples of 5 between 1 and 100. 5. (20 points) Get the sum of even multiples of 7 between 1 and 100. 14 +28+... 6. (15 points) Use currying to rewrite the function below: function cylinder volume(r, h) var volume 0.0 volume 3.14*r*r*h; return volume; Use r-5 and h 10 to call your curried function. 7. (15 points) Use the following code to take advantage of ontent with HTML tags, specifically show closure to wrap c an HTML table consisting of a table row that has at least one table cell/element. You can use the console to output your results. makeTag -function(beginTag, endTag) return function textcontent) return beginTag +textcontent +endTag: 8. (5 points) Following instructions (hint, hint, hint) 9. (Extra credit 10 points) Do the generic version of questions 3 and 4 - first odd or even and then the number whose multiples (in range to 100) you want. 10. (Bonus Points are available for early submission, see the instructions on Blackboard)

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!