Tuesday, January 4, 2011

[discussion_vu] Re: (VU-Study-Corner) want cs101 assignment 3 exact and perfect solution..


101% correct Solution


<html>
<head>
<title>Untitled Document</title>
<script type="text/javascript" language="javascript">
function check(numstr)
{
var a=document.getElementById('fid').value;
var regex1=/^[0-9-.]*$/;
if(document.theform.grd.value.length<1)
{

document.theform.grd.style.backgroundColor="pink";
alert("Please enter CGPA!");
document.theform.grd.style.backgroundColor="white";
document.getElementById('fid').focus();
}
else if(regex1.test(a)==false)
{
document.theform.grd.style.backgroundColor="red";
alert("Please enter numeric value only");
document.theform.grd.style.backgroundColor="white";
document.getElementById('fid').focus();
}
else if(document.theform.grd.value>4 || document.theform.grd.value<1)
{
document.theform.grd.style.backgroundColor="lightskyblue";
alert("Numeric Value Must be Between 0 and 4");
document.theform.grd.style.backgroundColor="white";
document.getElementById('fid').focus();
}
else if(document.theform.grd.value>=1 && document.theform.grd.value<2)
{
document.theform.grd.style.backgroundColor="lime";
alert("Fair :: You got D grade");
document.theform.submit();
}
else if(document.theform.grd.value>=2 && document.theform.grd.value<3)
{
document.theform.grd.style.backgroundColor="lime";
alert("Good :: You got C grade");
document.theform.submit();
}
else if(document.theform.grd.value>=3 && document.theform.grd.value<4)
{
document.theform.grd.style.backgroundColor="lime";
alert("Very Good :: You got B grade");
document.theform.submit();
}
else if(document.theform.grd.value=4)
{
document.theform.grd.style.backgroundColor="lime";
alert("Excellent :: You got A grade ");
document.theform.submit();
}

}
</script>
</head>

<body bgcolor="#666666">
<h1 align="center">StudentID :: Assignment 3 (CS101)</h1>
<form name="theform" action="http://www.vu.edu.pk">
<table border="1px" align="center" cellpadding="10px" cellspacing="1px">
<tr>
<td width="46">
CGPA </td>
<td width="199">
<input type="text" width="20px" name="grd" id="fid" />
</td>
</tr>
<tr>
<td>&nbsp;

</td>
<td>
<input type="button" value="Find Grade" onClick="check()"/>
</td>
</tr>
</table>
</form>
</body>
</html>

On Tue, Jan 4, 2011 at 11:34 AM, Cute Killer <faadyyyy@gmail.com> wrote:
Hy dear fellows...
I want cs101 Assignment # 3 solution which is accurate and perfectly good..
 
 
Fahad Khalid
Mba 1st semester
Multan campus
+923067390676
 
--
Follow these group rules if you want to stay long in the group.
http://groups.google.com/group/VU-Study-Corner/web/group-rules
 
You received this message because you are subscribed to the Google
Groups "VU Study Corner" group.
To post to this group, send email to VU-Study-Corner@googlegroups.com
To unsubscribe from this group, send email to
VU-Study-Corner+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/VU-Study-Corner?hl=en



--
█▓▒░ Hafiz Salman Majeed░▒▓█
            www.vuaskari.com
Google Groups
Subscribe to ::::::II VU ASKARI II::::::
Email:
Visit this group
MBA -III (Finance Group)
                  LAHORE

اللہ آپ کو آسانیاں عطا فرمائے۔
جزاكم الله خيرا وأحسن الجزاء في الدنيا والأخرة


--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

No comments:

Post a Comment

PAID CONTENT