KING'S IT WORLD
please register to watch content in detail
THANKS
ADMIN KINGSIT WORLD

KING'S IT WORLD


 
HomeHome  CalendarCalendar  GalleryGallery  FAQFAQ  SearchSearch  UsergroupsUsergroups  RegisterRegister  Log inLog in  
Search
 
 

Display results as :
 
Rechercher Advanced Search
kings it world text ad
KINGSITWORLD CALENDAR
Follow me on G+
KINGSITWORLD WEATHER
Latest topics
» QURAN MAJEED KE TAFSEER
Mon Aug 20, 2012 2:59 am by YOUSUFHALI

» PHY301 CIRCUIT THEORY REFERENCE BOOK
Wed Jul 25, 2012 11:36 am by shabbir1915

» MTH202 ASSIGNMENT NO 3 SOLUVED
Mon Jun 11, 2012 9:51 am by jaffarhussain

» Retrieve the DTC In the Jewel Module of 1995 Ford
Thu May 31, 2012 11:51 am by obd2tool

» How you can Obvious the Check Engine Light on the
Thu May 31, 2012 11:43 am by obd2tool

» send free sms and send free sms update on facebook
Tue May 15, 2012 8:33 pm by rizwan269

» United Bank Limited (UBL) - Fee Deposit
Thu May 10, 2012 3:33 pm by irumnaz

» PHOTO MIXER SOFTWARE
Fri Apr 20, 2012 10:02 am by sacredwkb

» Entrepreneurship Survey
Thu Mar 08, 2012 2:20 pm by Admin

» Fall 2011 Semester Result Announced
Thu Mar 08, 2012 2:19 pm by Admin

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
kings it world text ad
Social bookmarking
Social bookmarking Digg  Social bookmarking Delicious  Social bookmarking Reddit  Social bookmarking Stumbleupon  Social bookmarking Slashdot  Social bookmarking Furl  Social bookmarking Yahoo  Social bookmarking Google  Social bookmarking Blinklist  Social bookmarking Blogmarks  Social bookmarking Technorati  

Bookmark and share the address of KING'S IT WORLD on your social bookmarking website
visitors counter
Powered by website analytics technology.
Keywords
quran mth302 term quiz CS302 midterm cs403 solved mth301 MCM301 paper MKT621 assignment FALL MTH202 cs605 papers 2011 MTH101 cs401 SPRING mgt502 STA301 cs101 final 2010
kings it world text ad
FLAG COUNTER
free counters
LIVE TRAFFIC

Share | 
 

 cs101 assignment no 4 complete solution

View previous topic View next topic Go down 
AuthorMessage
mubeenji



Posts : 1
Points : 3
Reputation : 0
Join date : 2012-01-19

PostSubject: cs101 assignment no 4 complete solution   Thu Jan 19, 2012 10:50 pm





function ValidateStartField()
{
var chk = /^\d+$/.test(document.forms["mubeen"]["start"].value);
if (!chk)
{
window.alert("Please Enter Numeric Value in start field");
document.forms["mubeen"]["start"].value="";
document.forms["mubeen"]["start"].focus();
return false;
}
var x=document.forms["mubeen"]["start"].value;
if (x==0 || x=="" || x<2 || x>20)
{
window.alert("The value of Start field should be between 2 to 20");
document.forms["mubeen"]["start"].value="";
document.forms["mubeen"]["start"].focus();
return false;
}
else
{
return true;
}
}

function ValidateEndField()
{
var chk = /^\d+$/.test(document.forms["mubeen"]["end"].value);
if (!chk)
{
window.alert("Please Enter Numeric Value in end field");
document.forms["mubeen"]["end"].value="";
document.forms["mubeen"]["end"].focus();
return false;
}
var x=document.forms["mubeen"]["end"].value;
if (x==0 || x=="" || x<1 || x>20)
{
window.alert("Please Enter Value Greater then Zero");
document.forms["mubeen"]["end"].value="";
document.forms["mubeen"]["end"].focus();
return false;
}
}
function ValidateSizeField()
{
var chk = /^\d+$/.test(document.forms["mubeen"]["size"].value);
if (!chk)
{
window.alert("Please Enter Numeric Value in size field");
document.forms["mubeen"]["size"].value="";
document.forms["mubeen"]["size"].focus();
return false;
}
else if (document.forms["mubeen"]["size"].value<0 )
{
window.alert("Please Enter Value Greater then Zero");
document.forms["mubeen"]["size"].value="";
document.forms["mubeen"]["size"].focus();
return false;
}
else if (document.forms["mubeen"]["size"].value>20 || document.forms["mubeen"]["size"].value <2 )
{
window.alert("The value of Size field should be between 2 to 20");
document.forms["mubeen"]["size"].value="";
document.forms["mubeen"]["size"].focus();
return false;
}
else
{
true;
}
}


function DisplyTable()
{
var a=document.forms["mubeen"]["start"].value;
var b=document.forms["mubeen"]["end"].value;
var z1=document.forms["mubeen"]["size"].value;
m=parseInt(a);
u=parseInt(b);
b=parseInt(z1);
u=u+1;
b=b+1
document.write('
');
document.write('');
var c=1;
for (i=a;i{
document.write('
');
c=c+1;
if (c>4)
{
document.write('');
c=1;
}
}
document.write('');
document.write('
');
document.write('
Table of '+i+'');
document.write('');
for (j=1;j{
document.write('
');
document.write('');
document.write('');
document.write('');
document.write('');
document.write('');
}
document.write('
' +i+ '*' +j+ '=' +i*j+ '
');
document.write('
');
}
function GenerateTables()
{
if (!ValidateStartField()||!ValidateEndField()||!ValidateSizeField() )
{
}
if (ValidateStartField()&&ValidateEndField()&&ValidateSizeField() )
{
}
else
{
DisplyTable();
}
}




Fall assignment No::: 4_2011 (CS101)


 



















Start:


End:

Depth/Size:



 


 


Composed: by Mubeen Mehmood


Id: MC110401647






Back to top Go down
View user profile
 
cs101 assignment no 4 complete solution
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Pathfinder Testbed
» Astrometric Solution for HD 196885 Ab
» A Boutique and an assignment against me.
» New Baby, New Assignment, Old Dress
» Clydesdale horse assignment

Permissions in this forum:You cannot reply to topics in this forum
KING'S IT WORLD :: EDUCATION :: ASSIGNMENTS-
Jump to: