We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS101 Assignment No 4 Solution & Discussion Due Date: 18-01-2012

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 10167

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Replies to This Discussion

CS101 assignment uploaded

give provide us solutions or hints 

muje bi iska solution chiye hai

Attachments:

LOL this gonna take some time

solution kahan ha

Mujhe sirf java methimatical operations ki basicx chahye bna ma khud lo ga

Main ne baqi tu bana li hai bas ab sirf wo table wala function rehta hai jo k muje nhi patta k kase kia jata hai agar kisi ko pata hia tu btao plzzzzzzzzzzzzzzzzzzzzzzz

jo bnae ha woh tou send kro

Please Discuss here about this assignment.Thanks

This is an idea check it :P, if anyone completes then share please

<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>

Addonexus gud keep it up

give us the solution or IDEA plzzzzz for CS101

CS101 Assignment No 4 Solution Due Date: 18-01-2012 



This is an idea check it :p, if anyone completes then share please


<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>

RSS

Latest Activity

© 2020   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.