a” recursive function” and a “column chart with HTML element and JavaScript” need help

a” recursive function” and a “column chart with HTML element and JavaScript” need help

1.

Recursion is a useful programming technique, in which a function calls itself.

In this assignment, I want you to create a recursive function called myFactorial, that has one parameter:

A factorial is the product of an integer and all the integers below it. Factorials are denoted as n! and 0! = 1.

So, 0! = 1, 1! = 1, 2! = 2, 3! = 6, and 4! =24.

Your application should produce the following results: A.jpg

myFactorial output 0 to 10:

0! = 1
1! = 1
2! = 2
3! = 6
4! = 24
5! = 120
6! = 720
7! = 5,040
8! = 40,320
9! = 362,880
10! = 3,628,800

Use a for loop to call your function 11 times, use concatenation to put your output together, use the .toLocaleString() to put the comma into your results.

Remember, your function should call itself (recursion) to get full credit.

2

Using the HTML <canvas> element and JavaScript, create a column chart based on data from the following file: B.txt

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper