We tried that Assignment Solution, Graded Discussion Solution,Announcement
Search with our Site
Custom Search
Showing posts with label CS101. Show all posts
Showing posts with label CS101. Show all posts
Wednesday, November 20, 2013
Thursday, April 26, 2012
CS101 Assignment No. 02 Semester: Spring 2012 Introduction to Computing
![]() |
Assignment
No. 02
Introduction
to Computing-CS101
|
Total
Marks: 20
Due
Date: 02-05-2012
|
|
|
Objective: To develop your own JavaScript functions
and using them in form.
Instructions:
Please read
the following instructions carefully before solving & submitting
assignment:
Assignment should be in
your own wordings not copied from internet, handouts or books.
It should be clear that your assignment will not get any credit
(zero marks) if:
For any query about the assignment,
contact at cs101@vu.edu.pk
GOOD LUCK
|
|||
|
|
|
||
|
Question 1 [20 marks]
Make a form in HTML document containing only one field named
as Email and one Submit Button. Write your own JavaScript function to
validate the email address.
The Validation should be as follows:
Hint: See the attached sample html file for simply
checking @ and dot in an email address.
Note:
|
|||
Labels:
CS101
Saturday, January 14, 2012
CS101 Assignment No 4 Solution Due Date: 18-01-2012 Idea
Create yourself do not wait anyone who provide you solution.
This is an idea check it
, 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>
Read more: CS101 Assignment No 4 Solution & Discussion Due Date: 18-01-2012 - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/new-assignment-no-4-cs101-solution-ideas-plzzzzz?commentId=3783342%3AComment%3A1071450&groupId=3783342%3AGroup%3A58688#ixzz1jQs58dbD
This is an idea check it
<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>
Read more: CS101 Assignment No 4 Solution & Discussion Due Date: 18-01-2012 - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/new-assignment-no-4-cs101-solution-ideas-plzzzzz?commentId=3783342%3AComment%3A1071450&groupId=3783342%3AGroup%3A58688#ixzz1jQs58dbD
Labels:
CS101
CS101 Assignment No 4 Solution Due Date: 18-01-2012
CS101 Assignment No 4 Solution Due Date: 18-01-2012
This is an idea check it , 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>
Read more: CS101 Assignment No 4 Solution & Discussion Due Date: 18-01-2012 - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/new-assignment-no-4-cs101-solution-ideas-plzzzzz?commentId=3783342%3AComment%3A1071450&groupId=3783342%3AGroup%3A58688#ixzz1jQp352IF
Labels:
CS101
Thursday, January 12, 2012
cs101assignment no 4 solution Required
New assignment has been uploaded plzz upload ideas last date is 18 jan
Read more: New assignment no 4 cs101 solution ideas plzzzzz - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/new-assignment-no-4-cs101-solution-ideas-plzzzzz#ixzz1jEpZnerU
Read more: New assignment no 4 cs101 solution ideas plzzzzz - Virtual University of Pakistan http://vustudents.ning.com/group/cs101introductiontocomputing/forum/topics/new-assignment-no-4-cs101-solution-ideas-plzzzzz#ixzz1jEpZnerU
Labels:
CS101
Wednesday, December 21, 2011
Assignment No. 03 Semester Fall 2011 Introduction to Computing-CS101
![]() | Assignment No. 03 Semester Fall 2011 Introduction to Computing-CS101 | Total Marks: 25 Due Date: 26–12– 2011 | |
| Objective: To understand HTML tags and their use in designing a web page using HTML. In this assignment you will learn: 1. How to place images on HTML web page? 2. How to use images as background? 3. Use of Anchor tag to open any link in a new window. 4. How to use radio buttons group in HTML web page and how to allow select only one option? 5. How to limit the input characters in text field? 6. How to use image map to make a link on specific area of image? 7. How to use image from cross domain to local or other domain? Instructions: Please read the following instructions carefully before solving & submitting assignment: Assignment file should be in HTML format and should be in your own wordings (HTML Code) not copied from internet, handouts or books. It should be clear that your assignment will not get any credit if:
For any query about the assignment, contact at cs101@vu.edu.pk GOOD LUCK | |||
| | | ||
| Design an HTML page using HTML elements such as tables, images, textboxes, text areas, radio buttons, list boxes, select boxes, background images, image maps, submit button and reset button. (Marks 25) Read the following instructions carefully.
| |||
Labels:
CS101
Subscribe to:
Posts (Atom)


