Posts: 9,583
Threads: 8,089
Joined: Apr 2011
CS101 Introduction to Computing Assignment No. 4 Semester Spring June 2012
Assignment No. 04
Semester: Spring 2012
Introduction to Computing-CS101
Total Marks: 10
Due Date: 26-06-2012
Objective: To understand the fundamental concepts of computing and Web design
Lectures Covered: 31 to 38
Instructions:
Please read the following instructions carefully before solving & submitting assignment:
o Assignment should be done by your own efforts not copied from net, handouts or books.
o You should submit your MS Word File via assignment interface at VULMS.
o Assignment sent via Email will not be replied and accepted/graded in any case.
o The assignment submitted after due date will not be accepted/graded.
o If the submitted assignment does not open or file is corrupt then it will not be accepted/graded.
o If the Student ID is not mentioned in the assignment file then the assignment will not be accepted/graded.
For any query about the assignment
GOOD LUCK
Question [10 marks]
Topic:
Neural Network Learning Paradigm with Applications.
Make 5 slides in power point on the above given topic:
Slides 1: Intro of student ( Course name Student ID, Name, Discipline(Bachelor/Masters))
Slide 2: Topic name with topic Introduction
Slide 3: Topic’s brief description
Slide 4: Pros/Cons of Relevant Topic
Slide 5: Conclusion
Attached Files
Spring 2012_CS101_4.doc (Size: 185 KB / Downloads: 342)
Posts: 1
Threads: 0
Joined: Nov 2011
Posts: 9,583
Threads: 8,089
Joined: Apr 2011
contact this number 03435735329 solve solution mil jay ga
Posts: 1
Threads: 0
Joined: Jun 2012
ker den gay. janab itni bhi kia jaldi hai app ko... last date kab hai is ki?
Posts: 9,583
Threads: 8,089
Joined: Apr 2011
Solution:
<html>
<head>
<script type="text/javascript">
function multi() {
var par_elem = document.getElementById("table");
while(par_elem.childNodes.length) {
par_elem.removeChild(par_elem.childNodes[0]);
}
var input = 0.5;
while(input < 1 || input > 12 || parseInt(input) != input) {
if(input_str === null) {
create_button();
return;
}
var error = (typeof(input_str) != "undefined") ? "Your input is not a value between 1 and 12 or is not an integer. Try again.\n" : "";
var input_str = window.prompt(error + "Enter a value between 1 and 12 (inclusive, integer only)", "");
var input = new Number(input_str);
}
var table = document.createElement("table");
table.style.border = "1px solid #000000";
table.style.borderCollapse = "collapse";
var hrow = document.createElement("tr");
var heading = document.createElement("td");
heading.colSpan = 5;
heading.style.backgroundColor = "#C0C0C0";
heading.appendChild(document.createTextNode("multiplication table for: " + input));
hrow.appendChild(heading);
table.appendChild(hrow);
for(var i = 1; i < 13; i++) {
var color = (i / 2 == Math.floor(i / 2)) ? "#E0E0FF" : "#F0F000";
var tr = document.createElement("tr");
var value = document.createElement("td");
value.style.backgroundColor = color;
value.appendChild(document.createTextNode(i));
var times = document.createElement("td");
times.style.backgroundColor = color;
times.appendChild(document.createTextNode("times"));
var inp_cell = document.createElement("td");
inp_cell.style.backgroundColor = color;
inp_cell.appendChild(document.createTextNode(input));
var equals = document.createElement("td");
equals.style.backgroundColor = color;
equals.appendChild(document.createTextNode("equals"));
var result = document.createElement("td");
result.style.backgroundColor = color;
result.appendChild(document.createTextNode(i * input));
tr.appendChild(value);
tr.appendChild(times);
tr.appendChild(inp_cell);
tr.appendChild(equals);
tr.appendChild(result);
table.appendChild(tr);
}
par_elem.appendChild(table);
if(document.all && !window.opera) par_elem.innerHTML = par_elem.innerHTML;
create_button();
}
function create_button() {
var ie = (document.all && !window.opera);
if(ie) var button = document.createElement("<input type='button' value='new multiplication table'>");
else {
var button = document.createElement("input");
button.type = "button";
button.value = "new multiplication table";
}
button.onclick = multi;
document.getElementById("table").appendChild(button);
}
window.onload = multi;
</script>
</head>
<body>
<div id="table"></div>
</body>
</html>
Posts: 9,583
Threads: 8,089
Joined: Apr 2011
Code:
<html>
<head>
<script type="text/javascript">
function multi() {
var par_elem = document.getElementById("table");
while(par_elem.childNodes.length) {
par_elem.removeChild(par_elem.childNodes[0]);
}
var input = 0.5;
while(input < 1 || input > 12 || parseInt(input) != input) {
if(input_str === null) {
create_button();
return;
}
var error = (typeof(input_str) != "undefined") ? "Your input is not a value between 1 and 12 or is not an integer. Try again.\n" : "";
var input_str = window.prompt(error + "Enter a value between 1 and 12 (inclusive, integer only)", "");
var input = new Number(input_str);
}
var table = document.createElement("table");
table.style.border = "1px solid #000000";
table.style.borderCollapse = "collapse";
var hrow = document.createElement("tr");
var heading = document.createElement("td");
heading.colSpan = 5;
heading.style.backgroundColor = "#C0C0C0";
heading.appendChild(document.createTextNode("multi plication table for: " + input));
hrow.appendChild(heading);
table.appendChild(hrow);
for(var i = 1; i < 13; i++) {
var color = (i / 2 == Math.floor(i / 2)) ? "#E0E0FF" : "#F0F000";
var tr = document.createElement("tr");
var value = document.createElement("td");
value.style.backgroundColor = color;
value.appendChild(document.createTextNode(i));
var times = document.createElement("td");
times.style.backgroundColor = color;
times.appendChild(document.createTextNode("times") );
var inp_cell = document.createElement("td");
inp_cell.style.backgroundColor = color;
inp_cell.appendChild(document.createTextNode(input ));
var equals = document.createElement("td");
equals.style.backgroundColor = color;
equals.appendChild(document.createTextNode("equals "));
var result = document.createElement("td");
result.style.backgroundColor = color;
result.appendChild(document.createTextNode(i * input));
tr.appendChild(value);
tr.appendChild(times);
tr.appendChild(inp_cell);
tr.appendChild(equals);
tr.appendChild(result);
table.appendChild(tr);
}
par_elem.appendChild(table);
if(document.all && !window.opera) par_elem.innerHTML = par_elem.innerHTML;
create_button();
}
function create_button() {
var ie = (document.all && !window.opera);
if(ie) var button = document.createElement("<input type='button' value='new multiplication table'>");
else {
var button = document.createElement("input");
button.type = "button";
button.value = "new multiplication table";
}
button.onclick = multi;
document.getElementById("table").appendChild(butto n);
}
window.onload = multi;
</script>
</head>
<body>
<div id="table"></div>
</body>
</html>