Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need this solution as soon as possible 1. Create a single HTML page using the

ID: 3701691 • Letter: I

Question

I need this solution as soon as possible

1. Create a single HTML page using the editor of your choice. Name this page using the following template: your first name followed by an underscore and then "Lab9. For example, "Jim Lab9.html" 2. Use the following template as a starting point for your page: chtmb chead> ctitle Page Title Herec/ite> cbody> 3. This purpose of this lab is to create a web page that will allow the user to enter a number, and will then output how many times each digit occurred in the number 4 Create a div label, telling the user to enter a number, along with a textbox. Then create a submit button. s. Create an array an initialize the first 10 numbers in the array to o 6. When the user enters a number, count how many times each digit occurs in the number and store the count in the array. C2017 Fanshawe College INFO1232, Fall 2017

Explanation / Answer

<html>
<head><title>TITLE</title>
<script language="JavaScript" type="text/JavaScript">
function myfunction()
{
var number=document.getElementById("textbox").innerHTML;
var re = /^[0-9]+$/;
var arrayofinput=number.toString().split('');
if(number==""||number==null)
{
alert("Please Enter the Number");
}
else if(!re.test(number))
{   
alert('Invalid Number');
}
else if(arrayofinput.length<10||arrayofinput.length>10)
{
alert("Please Enter Ten Digit Number");
}
else
{
var count=0;
arrayofcount= new Array();
var tendigitnumber;
var temp;
for(var j=0;j<10;j++)
{
for(var k=0;k<10;k++)
{
if(arrayofinput[k]==j)
{
count++;
}

}
arrayofcount[j]=count;
count=0
}
var table="<table>";
for(var i=0;i<10;i++)
{
table+='<tr><td>The number ' + i + ' occured ' + arrayofcount[i] + ' times</td></tr>';
}
table+='</table>';
document.getElementById("list").innerHTML=table;
}
}
</script>
</head>
<body>
<table>
<tr><td><div id="textbox" contenteditable="true"></div></td><td><button type="button">Submit</button></td></tr>
</table>
<div id="list"><div>
</body>
</html>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote