<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[IT430 Assignment 2 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Assignment No. 02<br />
Semester:Fall 2019<br />
E-Commerce–IT430	<br />
Total Marks:        15</p>
<p dir="auto">Due Date:  02-12-2019<br />
Objectives:<br />
After solving this assignment, students will learn about:<br />
•	HTML tags and handling of HTML tags.<br />
•	Form creation and form elements handling in HTML.<br />
•	Knowledge about JAVASCRIPT functions and JAVASCRIPTevents.<br />
Instructions:<br />
Please read the following instructions carefully before submitting assignment:<br />
It should be clear that your assignment will not get any credit if:<br />
	The assignment is submitted after due date.<br />
	The assignment is submitted via email.<br />
	The assignment is copied from Internet or from any other student.<br />
	The submitted assignment does not open or file is corrupt.<br />
	It is in some format other than.html.<br />
	Students are required to submit HTML code file only with .html extension.<br />
	Don’t upload word format file(.doc) etc.<br />
For any query about the assignment, contact at <a href="http://it430u.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">it430u.edu.pk</a></p>
<p dir="auto">Question Statement:</p>
<p dir="auto">Develop \ Create a web page using Html and JavaScript for the purpose of Grade Calculation as shown below:</p>
<p dir="auto">Solution guidelines of this  web page are given as follows:<br />
•	Create Heading “Grade Book Calculator” using H2 tag and Welcome to online Grade Book calculator using H4 tag.<br />
•	Create text boxes forStudent ID,Name, Father Name. Show your student ID,Name ,father name respectively.<br />
•	CNIC format Should be followed as provided default value.<br />
•	Before clicking on Grade Book button user must enter all subject marks otherwise alert message box should be shown like the following:</p>
<p dir="auto">•	Create two buttons labeled as Grade Book and Reset. On onClick event of Grade Book,the JavaScript function “Gradecal()”should be called to check whether subject marks entered or not. Alert Message should be shown in case of error. If  subject marks are entered in the text boxes then, Math+English+Computer/3as an average will be calculated and shown in ‘Average Marks’ text Box.<br />
•	Grade should be calculated on the basis of average marks and shown in the alert message box. Following table  should be used to calculate Grades.</p>
<p dir="auto">Grade calculation	Grade<br />
Average &gt;= 85	 A+<br />
Average &lt;=84 or Average &gt;= 74	A<br />
Average &lt;= 73 or Average &gt;= 66	B<br />
Average &lt; =65 or Average &gt;= 51	C<br />
Average &lt;=50 or Average &gt;= 40	D<br />
Average &lt;40	F</p>
<p dir="auto">Best of Luck</p>
]]></description><link>https://community.secnto.com//topic/692/it430-assignment-2-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 19:59:41 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/692.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Nov 2019 10:48:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Thu, 16 Jan 2020 09:22:18 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Solution:</strong></p>
<pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Grade Book Calculator&lt;/title&gt;
	&lt;script&gt;
	  
 


function Gradecal()
 {		
       
	    
 if(window.document.frmStuGradeCal.Seng.value == "")
            {	
             window.confirm("English Marks are missing");
            }	

	else if(window.document.frmStuGradeCal.Smath.value == "")
            {	
             window.confirm("Math Marks are missing");
            }	

    else if(window.document.frmStuGradeCal.Scom.value == "")
            {	
             window.confirm("Computer Marks are missing");
            }	

     

		if(window.document.frmStuGradeCal.Tmarks.value &gt;= 85)
            {	
             window.confirm("Your Grade is A+");
            }	

else if(window.document.frmStuGradeCal.Tmarks.value == 84 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 74)
            {	
             window.confirm("Your Grade is A");
            }	
else if(window.document.frmStuGradeCal.Tmarks.value == 73 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 66)
            {	
             window.confirm("Your Grade is B");
            }	

else if(window.document.frmStuGradeCal.Tmarks.value == 65 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 51)
            {	
             window.confirm("Your Grade is C");
            }	
else if(window.document.frmStuGradeCal.Tmarks.value == 50 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 40)
            {	
             window.confirm("Your Grade is D");
            }	


else if (window.document.frmStuGradeCal.Tmarks.value &lt; 40)
            {	
             window.confirm("You are Fail");
            }	


         
      

				  
   }  



function focusOut() 
{



document.getElementById("yes8").value= (parseFloat(frmStuGradeCal.yes5.value) +  parseFloat(frmStuGradeCal.yes6.value)+parseFloat(frmStuGradeCal.yes7.value))/3;


	

}

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 = "";
}

	  
	&lt;/script&gt;
  &lt;/head&gt;
    &lt;body&gt;
     &lt;h2 align= "Center"style="background-color:DodgerBlue;"&gt; Grade  Book Calculator&lt;/h2&gt;
     &lt;h3 align= "Center"style="background-color:DodgerBlue;"&gt; Welcome to online Grade Book  Calculator&lt;/h3&gt;
       &lt;form name="frmStuGradeCal" align="center"&gt;
         &lt;table align="center"&gt;
           &lt;tr&gt;&lt;td&gt;Student ID: &lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes" Name="StuId" value = BC123456789 &gt;&lt;td  bgcolor="#FF0000"&gt;*Write your own VUID &lt;/td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
           &lt;tr&gt;&lt;td&gt;Name: &lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes1" Name="StuName" value = "Aamir Latif" &gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
           &lt;tr&gt;&lt;td&gt;Father Name:&lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes2" Name="FatherName" value = "Abdul Latif" &gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
                             
			
&lt;tr&gt;&lt;td&gt;CNIC:&lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes4" maxlength="15" Name="StuCnic" value = "33100-1100321-5"&gt; &lt;td  bgcolor="#FF0000"&gt;*e.g 33100-1100321-5&lt;/td&gt; &lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;English*:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes5" Name="Seng" onfocusout="focusOut()"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;Math*:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes6" Name="Smath" onfocusout="focusOut()"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;Camputer*:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes7" Name="Scom" onfocusout="focusOut()"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;Average Marks:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes8" Name="Tmarks" disabled&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;

                 
           &lt;/table&gt;
		   
         &lt;input type="button" name="btncalculator" value=" Grade Book" onclick= "Gradecal()"&gt;
		         

&lt;/tr&gt;

&lt;tr&gt;  &lt;/tr&gt;

&lt;tr &gt;

&lt;td &gt;  


&lt;input type="button" value="Reset" onClick="this.form.reset()" &gt;
&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;
&lt;td  colspan = 2&gt;
You can press reset button for another Grade Book Calculation&lt;/td&gt;
&lt;/tr&gt;



       &lt;/form&gt;
    &lt;/body&gt;

&lt;/html&gt;

</code></pre>
]]></description><link>https://community.secnto.com//post/2117</link><guid isPermaLink="true">https://community.secnto.com//post/2117</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Thu, 16 Jan 2020 09:22:18 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Tue, 03 Dec 2019 11:56:33 GMT]]></title><description><![CDATA[<pre><code>&lt;!DOCTYPE html&gt;

&lt;html&gt;

&lt;head&gt; 
&lt;title&gt;IT430 ASSIGNMENT NO 2 
&lt;/title&gt; 
&lt;/head&gt;

&lt;body bgcolor="@B6D53B"&gt; 
&lt;center&gt; 
&lt;h2&gt;Grade Book Calculator&lt;/h2&gt; 
&lt;h4 &gt;Welcom To Grade Book Calculator&lt;/h4&gt;

&lt;form id="myform"&gt; 
&lt;table&gt; 
&lt;tr&gt;
&lt;td&gt;
Student_ID:
&lt;/td&gt;
&lt;td&gt;
&lt;input id="studentid" oninvalid="alert('Please Enter Student_ID ')"
type="text" placeholder="Enter your VU ID" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Name:
&lt;/td&gt;
&lt;td&gt;
&lt;input id="nameid" oninvalid="alert('Please Enter Name ')"
type="text" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
Father Name:
&lt;/td&gt;
&lt;td&gt;
&lt;input id="fathernameid" oninvalid="alert('Please Enter Father Name ')"
type="text" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt; 

&lt;tr&gt;
&lt;td&gt;
CNIC:
&lt;/td&gt;
&lt;td&gt;&lt;input id="cnicid" pattern="^[0-9+]{5}-[0-9+]{7}-[0-9]{1}$" oninvalid="alert('Please Enter CNIC ')"
type="text" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
English:
&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="englishid" oninvalid="alert('Please Enter English Marks ')"
name="english" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
Computer:
&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="computerid" oninvalid="alert('Please Enter Computer Marks ')"
name="computer" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
Math:
&lt;/td&gt;
&lt;td&gt;&lt;input type="text" id="mathid" oninvalid="alert('Please Enter Math Marks ')"
name="math" required="required" /&gt; 
&lt;/td&gt;
&lt;/tr&gt;

&lt;tr&gt;
&lt;td&gt;
&lt;input type="submit" onclick="calculate()"/&gt;
&lt;input type="reset"&gt;
&lt;/td&gt;

&lt;/table&gt;
&lt;/form&gt; 
&lt;/center&gt;

&lt;script&gt; 
function calculate(){
var field1 = parseInt(document.getElementById("englishid").value);
var field2 = parseInt(document.getElementById("computerid").value);
var field3 = parseInt(document.getElementById("mathid").value);

var result = (field1+field2+field3)/3;
alert(result);

}

&lt;/script&gt;

&lt;/body&gt;

&lt;/html&gt;
</code></pre>
]]></description><link>https://community.secnto.com//post/2119</link><guid isPermaLink="true">https://community.secnto.com//post/2119</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 03 Dec 2019 11:56:33 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Tue, 03 Dec 2019 11:54:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sqa-master" aria-label="Profile: SQA-Master">@<bdi>SQA-Master</bdi></a><br />
please join chat room for solution code</p>
<p dir="auto"><a href="https://cyberian.pk/videochat/" target="_blank" rel="noopener noreferrer nofollow ugc">Chat Room</a></p>
]]></description><link>https://community.secnto.com//post/2118</link><guid isPermaLink="true">https://community.secnto.com//post/2118</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Tue, 03 Dec 2019 11:54:07 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Thu, 16 Jan 2020 09:22:18 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Solution:</strong></p>
<pre><code>&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Grade Book Calculator&lt;/title&gt;
	&lt;script&gt;
	  
 


function Gradecal()
 {		
       
	    
 if(window.document.frmStuGradeCal.Seng.value == "")
            {	
             window.confirm("English Marks are missing");
            }	

	else if(window.document.frmStuGradeCal.Smath.value == "")
            {	
             window.confirm("Math Marks are missing");
            }	

    else if(window.document.frmStuGradeCal.Scom.value == "")
            {	
             window.confirm("Computer Marks are missing");
            }	

     

		if(window.document.frmStuGradeCal.Tmarks.value &gt;= 85)
            {	
             window.confirm("Your Grade is A+");
            }	

else if(window.document.frmStuGradeCal.Tmarks.value == 84 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 74)
            {	
             window.confirm("Your Grade is A");
            }	
else if(window.document.frmStuGradeCal.Tmarks.value == 73 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 66)
            {	
             window.confirm("Your Grade is B");
            }	

else if(window.document.frmStuGradeCal.Tmarks.value == 65 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 51)
            {	
             window.confirm("Your Grade is C");
            }	
else if(window.document.frmStuGradeCal.Tmarks.value == 50 || window.document.frmStuGradeCal.Tmarks.value  &gt;= 40)
            {	
             window.confirm("Your Grade is D");
            }	


else if (window.document.frmStuGradeCal.Tmarks.value &lt; 40)
            {	
             window.confirm("You are Fail");
            }	


         
      

				  
   }  



function focusOut() 
{



document.getElementById("yes8").value= (parseFloat(frmStuGradeCal.yes5.value) +  parseFloat(frmStuGradeCal.yes6.value)+parseFloat(frmStuGradeCal.yes7.value))/3;


	

}

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 = "";
}

	  
	&lt;/script&gt;
  &lt;/head&gt;
    &lt;body&gt;
     &lt;h2 align= "Center"style="background-color:DodgerBlue;"&gt; Grade  Book Calculator&lt;/h2&gt;
     &lt;h3 align= "Center"style="background-color:DodgerBlue;"&gt; Welcome to online Grade Book  Calculator&lt;/h3&gt;
       &lt;form name="frmStuGradeCal" align="center"&gt;
         &lt;table align="center"&gt;
           &lt;tr&gt;&lt;td&gt;Student ID: &lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes" Name="StuId" value = BC123456789 &gt;&lt;td  bgcolor="#FF0000"&gt;*Write your own VUID &lt;/td&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
           &lt;tr&gt;&lt;td&gt;Name: &lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes1" Name="StuName" value = "Aamir Latif" &gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
           &lt;tr&gt;&lt;td&gt;Father Name:&lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes2" Name="FatherName" value = "Abdul Latif" &gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
                             
			
&lt;tr&gt;&lt;td&gt;CNIC:&lt;/td&gt;&lt;td&gt;&lt;input type ="text" id="yes4" maxlength="15" Name="StuCnic" value = "33100-1100321-5"&gt; &lt;td  bgcolor="#FF0000"&gt;*e.g 33100-1100321-5&lt;/td&gt; &lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;English*:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes5" Name="Seng" onfocusout="focusOut()"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;Math*:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes6" Name="Smath" onfocusout="focusOut()"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;Camputer*:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes7" Name="Scom" onfocusout="focusOut()"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;tr&gt;&lt;td&gt;Average Marks:&lt;/td&gt;&lt;td&gt;&lt;input type ="number" id="yes8" Name="Tmarks" disabled&gt;&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;

                 
           &lt;/table&gt;
		   
         &lt;input type="button" name="btncalculator" value=" Grade Book" onclick= "Gradecal()"&gt;
		         

&lt;/tr&gt;

&lt;tr&gt;  &lt;/tr&gt;

&lt;tr &gt;

&lt;td &gt;  


&lt;input type="button" value="Reset" onClick="this.form.reset()" &gt;
&lt;/td&gt;

&lt;/tr&gt;

&lt;tr&gt;
&lt;td  colspan = 2&gt;
You can press reset button for another Grade Book Calculation&lt;/td&gt;
&lt;/tr&gt;



       &lt;/form&gt;
    &lt;/body&gt;

&lt;/html&gt;

</code></pre>
]]></description><link>https://community.secnto.com//post/2117</link><guid isPermaLink="true">https://community.secnto.com//post/2117</guid><dc:creator><![CDATA[cyberian]]></dc:creator><pubDate>Thu, 16 Jan 2020 09:22:18 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Sat, 30 Nov 2019 11:55:09 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://www.youtube.com/watch?v=aHEyuPLVYWk" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.youtube.com/watch?v=aHEyuPLVYWk</a></p>
]]></description><link>https://community.secnto.com//post/2060</link><guid isPermaLink="true">https://community.secnto.com//post/2060</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sat, 30 Nov 2019 11:55:09 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Sat, 30 Nov 2019 11:34:05 GMT]]></title><description><![CDATA[<p dir="auto">Assignment Available only for Cyberian Chat Room! Members<br />
Please check Live Streaming</p>
]]></description><link>https://community.secnto.com//post/2059</link><guid isPermaLink="true">https://community.secnto.com//post/2059</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sat, 30 Nov 2019 11:34:05 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Sat, 30 Nov 2019 10:34:20 GMT]]></title><description><![CDATA[<p dir="auto"><img src="https://i.imgur.com/vKgBAhx.png" alt="26184f54-1ba8-46f1-b203-4c5fa341d6b0-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/2058</link><guid isPermaLink="true">https://community.secnto.com//post/2058</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sat, 30 Nov 2019 10:34:20 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Sat, 30 Nov 2019 09:31:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sqa-master" aria-label="Profile: SQA-Master">@<bdi>SQA-Master</bdi></a><br />
Solution is crating team ASAP!</p>
]]></description><link>https://community.secnto.com//post/2057</link><guid isPermaLink="true">https://community.secnto.com//post/2057</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sat, 30 Nov 2019 09:31:09 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Sat, 30 Nov 2019 09:25:06 GMT]]></title><description><![CDATA[<p dir="auto">Comping Soon Solution!</p>
<p dir="auto"><img src="https://i.imgur.com/tF5LL6t.png" alt="f0237936-a8a7-4ebf-9d73-c359cd905c65-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//post/2056</link><guid isPermaLink="true">https://community.secnto.com//post/2056</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Sat, 30 Nov 2019 09:25:06 GMT</pubDate></item><item><title><![CDATA[Reply to IT430 Assignment 2 Solution and Discussion on Sat, 30 Nov 2019 08:28:13 GMT]]></title><description><![CDATA[<p dir="auto">Please send solution of this Assignment</p>
]]></description><link>https://community.secnto.com//post/2055</link><guid isPermaLink="true">https://community.secnto.com//post/2055</guid><dc:creator><![CDATA[SQA Master]]></dc:creator><pubDate>Sat, 30 Nov 2019 08:28:13 GMT</pubDate></item></channel></rss>