# SOLVED IT430 Assignment 2 Solution and Discussion

• @SQA-Master
please join chat room for solution code

Chat Room

• Solution:

``````<html>
<script>

{

{
window.confirm("English Marks are missing");
}

{
window.confirm("Math Marks are missing");
}

{
window.confirm("Computer Marks are missing");
}

{
}

{
}
{
}

{
}
{
}

{
window.confirm("You are Fail");
}

}

function focusOut()
{

}

function reset()
{
document.getElementById("yes").value = "";
document.getElementById("yes1").value = "";
document.getElementById("yes2").value = "";
document.getElementById("yes3").value = "";
document.getElementById("yes4").value = "";
document.getElementById("yes5").value = "";
document.getElementById("yes6").value = "";
document.getElementById("yes7").value = "";
document.getElementById("yes8").value = "";
}

</script>
<body>
<h2 align= "Center"style="background-color:DodgerBlue;"> Grade  Book Calculator</h2>
<h3 align= "Center"style="background-color:DodgerBlue;"> Welcome to online Grade Book  Calculator</h3>
<table align="center">
<tr><td>Student ID: </td><td><input type ="text" id="yes" Name="StuId" value = BC123456789 ><td  bgcolor="#FF0000">*Write your own VUID </td></td></tr><br>
<tr><td>Name: </td><td><input type ="text" id="yes1" Name="StuName" value = "Aamir Latif" ></td></tr><br>
<tr><td>Father Name:</td><td><input type ="text" id="yes2" Name="FatherName" value = "Abdul Latif" ></td></tr><br>

<tr><td>CNIC:</td><td><input type ="text" id="yes4" maxlength="15" Name="StuCnic" value = "33100-1100321-5"> <td  bgcolor="#FF0000">*e.g 33100-1100321-5</td> </td></tr><br>
<tr><td>English*:</td><td><input type ="number" id="yes5" Name="Seng" onfocusout="focusOut()"></td></tr><br>
<tr><td>Math*:</td><td><input type ="number" id="yes6" Name="Smath" onfocusout="focusOut()"></td></tr><br>
<tr><td>Camputer*:</td><td><input type ="number" id="yes7" Name="Scom" onfocusout="focusOut()"></td></tr><br>
<tr><td>Average Marks:</td><td><input type ="number" id="yes8" Name="Tmarks" disabled></td></tr><br>

</table>

</tr>

<tr>  </tr>

<tr >

<td >

<input type="button" value="Reset" onClick="this.form.reset()" >
</td>

</tr>

<tr>
<td  colspan = 2>
You can press reset button for another Grade Book Calculation</td>
</tr>

</form>
</body>

</html>

``````

• Solution:

``````<html>
<script>

{

{
window.confirm("English Marks are missing");
}

{
window.confirm("Math Marks are missing");
}

{
window.confirm("Computer Marks are missing");
}

{
}

{
}
{
}

{
}
{
}

{
window.confirm("You are Fail");
}

}

function focusOut()
{

}

function reset()
{
document.getElementById("yes").value = "";
document.getElementById("yes1").value = "";
document.getElementById("yes2").value = "";
document.getElementById("yes3").value = "";
document.getElementById("yes4").value = "";
document.getElementById("yes5").value = "";
document.getElementById("yes6").value = "";
document.getElementById("yes7").value = "";
document.getElementById("yes8").value = "";
}

</script>
<body>
<h2 align= "Center"style="background-color:DodgerBlue;"> Grade  Book Calculator</h2>
<h3 align= "Center"style="background-color:DodgerBlue;"> Welcome to online Grade Book  Calculator</h3>
<table align="center">
<tr><td>Student ID: </td><td><input type ="text" id="yes" Name="StuId" value = BC123456789 ><td  bgcolor="#FF0000">*Write your own VUID </td></td></tr><br>
<tr><td>Name: </td><td><input type ="text" id="yes1" Name="StuName" value = "Aamir Latif" ></td></tr><br>
<tr><td>Father Name:</td><td><input type ="text" id="yes2" Name="FatherName" value = "Abdul Latif" ></td></tr><br>

<tr><td>CNIC:</td><td><input type ="text" id="yes4" maxlength="15" Name="StuCnic" value = "33100-1100321-5"> <td  bgcolor="#FF0000">*e.g 33100-1100321-5</td> </td></tr><br>
<tr><td>English*:</td><td><input type ="number" id="yes5" Name="Seng" onfocusout="focusOut()"></td></tr><br>
<tr><td>Math*:</td><td><input type ="number" id="yes6" Name="Smath" onfocusout="focusOut()"></td></tr><br>
<tr><td>Camputer*:</td><td><input type ="number" id="yes7" Name="Scom" onfocusout="focusOut()"></td></tr><br>
<tr><td>Average Marks:</td><td><input type ="number" id="yes8" Name="Tmarks" disabled></td></tr><br>

</table>

</tr>

<tr>  </tr>

<tr >

<td >

<input type="button" value="Reset" onClick="this.form.reset()" >
</td>

</tr>

<tr>
<td  colspan = 2>
You can press reset button for another Grade Book Calculation</td>
</tr>

</form>
</body>

</html>

``````

• Assignment Available only for Cyberian Chat Room! Members

• @SQA-Master
Solution is crating team ASAP!

• Comping Soon Solution!

• Please send solution of this Assignment

2

1

5

1

3

2

2

1
| |