- Write an HTML file
- to create an array with 100 elements
- assign each of the first 50 elements with a value which equalsto its subscript;
- assign each of the last 50 elements with a value which equalsto the addition of its subscript and 2;
- Calculate the square root of each element;
- Use for … in statement to calculate the sum ofthe elements in the array;
- Calculate the average value of elements in the array
- Use a table to display the subscript, element value, and thesquare root of each element in the array;
- Display the sum and the average of the elements in thearray;
Expert Answer
Answer to Write an HTML file to create an array with 100 elements assign each of the first 50 elements with a value which equals …