https://www.google.com/contributor/welcome/?utm_source=publisher&utm_medium=banner&utm_campaign=2376261057261409

Search This Blog

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

CS101 Assignment No 01 Solution & Discussion Due Date:26-11-2013


Thursday, April 26, 2012

CS101 Assignment No. 02 Semester: Spring 2012 Introduction to Computing


animatedLOGO
Assignment No. 02
Semester: Spring 2012
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:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • The assignment is copied (from other student or copied from handouts or internet).
  • Student ID is not mentioned in the assignment file or name of file is other than student ID.

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:

  1. It must accept only your VU Student email address i.e; it must not accept any other student’s VU email address.
  2. It must show alert on acceptance or denial of the email address after validation.
  3. The name of the function should contain your student ID like CheckEmail_BC102034568.
  4. If you enter your wrong student email id then it must show alert as well.
  5. It must accept your student ID only at vu.edu.pk, means if you enter BC102034568@hotmail.com then it must not accept it.
  6. There must be unique alerts for each error; like if the length of the student ID is larger or smaller than the original ID then the alert should be according to that.
  7. During each alert, the entered email address must also be shown in the alert box like: “BC102034560000008@vu.edu.pk is not your Valid Email address”

Hint: See the attached sample html file for simply checking @ and dot in an email address.


Note:

  • Assignment should be done by your own efforts, not copied from net, handouts or books.

  • You should submit your html file as well as word file containing the code, zip the both files in one single file and upload via your assignment interface.






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

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

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

Thursday, January 12, 2012

cs101assignment no 4 solution Required

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:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • The assignment is copied (from other student or copied from handouts or internet).
  • The title of the webpage is other than student VU ID.
  • The assignment file is not in HTML format.

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.

  1. Your assignment must be a single HTML format file; any other format or screen shots are not acceptable.
  2. Use of Style Sheet is not allowed in this assignment.
  3. To create HTML file:
    1. Open notepad, write your code in this new file and “save as”.
    2. When it asks for file name, give its name like “studentID.html”.
    3. Take care of double quotes, there must be starting and ending double quotes to save file in HTML format. 
  4. For header image use http://vulms.vu.edu.pk/Courses/CS101/Downloads/fall2011-assignment3-cs101-header.jpg as image source.
  5. For background image use this link http://vulms.vu.edu.pk/Courses/CS101/Downloads/fall2011-assignment3-cs101-naviBG.jpg as image source.