<?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[CS101 Assignment 3 Solution and Discussion Fall-2019]]></title><description><![CDATA[<p dir="auto">Objectives:</p>
<p dir="auto">After solving this assignment, students will learn about,</p>
<p dir="auto">Interaction of JavaScript with HTML.<br />
Handling of JavaScript functions, loops, decision structure &amp; event handling.<br />
Instructions: Read the following instructions carefully before submitting the assignment.</p>
<p dir="auto">It should be clear that your assignment will not get any credit if:</p>
<p dir="auto">§  The assignment is submitted through email or after due date.</p>
<p dir="auto">§  The assignment is not in the .html format.</p>
<p dir="auto">§  The submitted assignment does not open or file is corrupt.</p>
<p dir="auto">§  Assignment is copied(partial or full) from any source (websites, forums, students, etc)</p>
<p dir="auto">§  Assignment is in any other format like images, PDF, “.txt”, “.doc”, Zip, rar etc.</p>
<p dir="auto">Question: You are required to make a table generator webpage.</p>
<p dir="auto">Requirements:</p>
<p dir="auto">The title of the web page should be your VU-ID.<br />
Table Generator should get the table number and table length from user and generates table of that number up to the provided length with generate button.<br />
It should also count even and odd values in the output &amp; displays these counts in their respective fields.<br />
If user inputs value less than 1 it should not generate table but display an alert message with “Invalid Input”<br />
If user enters a float number then it should ignore decimal part in calculation.<br />
You have to make two tables with border. First table will have two table rows of <input /> and second table will have two table rows of <input /> and one table row of </p>
<p dir="auto">You can also use \n in JavaScript instead of <br /> for line break in output.<br />
If you have any queries, you can email at <a href="mailto:cs101@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs101@vu.edu.pk</a>.<br />
Sample design:<br />
<img src="https://i.imgur.com/e4t6NhH.png" alt="9949e237-385c-4bfb-8272-2c24a5e83896-image.png" class=" img-fluid img-markdown" /><br />
Sample output:<br />
<img src="https://i.imgur.com/ihDXybI.png" alt="f4fbb6c0-aef4-49ff-bd83-2ede2847faad-image.png" class=" img-fluid img-markdown" /><br />
Sample alert message:<br />
<img src="https://i.imgur.com/lVX7pH6.png" alt="32170d57-2bd8-43be-adc8-40daa4f2a251-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://community.secnto.com//topic/942/cs101-assignment-3-solution-and-discussion-fall-2019</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 23:02:17 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/942.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 11 Jan 2020 13:50:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS101 Assignment 3 Solution and Discussion Fall-2019 on Mon, 13 Jan 2020 11:20:11 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://trinket.io/java/276087f7df?showInstructions=true" target="_blank" rel="noopener noreferrer nofollow ugc">https://trinket.io/java/276087f7df?showInstructions=true</a></p>
]]></description><link>https://community.secnto.com//post/2644</link><guid isPermaLink="true">https://community.secnto.com//post/2644</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Mon, 13 Jan 2020 11:20:11 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 3 Solution and Discussion Fall-2019 on Mon, 13 Jan 2020 11:11:05 GMT]]></title><description><![CDATA[<p dir="auto"><strong>Solution Ideas Code:</strong></p>
<pre><code>function myFunction()
{

var Number = document.getElementById("TN").value;
var T;
var I = document.getElementById("IN").value;
var E = document.getElementById("EN").value;
var temp="";
for (T = I; T &lt;= E; T++) {
temp+="&lt;tr&gt;&lt;td&gt;"+Number+"&lt;/td&gt;&lt;td&gt;*&lt;/td&gt;&lt;td&gt;" + T + "&lt;/td&gt;&lt;td&gt;=&lt;/td&gt;&lt;td&gt;" + Number*T +"&lt;/td&gt;&lt;/tr&gt;"; 
}

$("#displayTables").append(temp);

}

</code></pre>
<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;title&gt;Multiplication Table&lt;/title&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
  &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css"&gt;
  &lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;

&lt;h2&gt;MultiplicationTable&lt;/h2

&lt;form action&gt;
Table Number:&lt;br&gt;
&lt;input type="text" id="TN" name="TableNumber"&gt;
&lt;br&gt;
Initial Number:&lt;br&gt;
&lt;input type="text" id="IN" name="InitialNumber"&gt;
&lt;br&gt;
Ending Number:&lt;br&gt;
&lt;input type="text" id="EN" name="EndingNumber"&gt;
&lt;/form&gt;

&lt;br&gt;&lt;br&gt;    
   

&lt;button onclick="myFunction()"&gt;Print Table&lt;/button&gt;
&lt;table class="table table-bordered"  id="displayTables"&gt;

&lt;/table&gt;
 
</code></pre>
]]></description><link>https://community.secnto.com//post/2643</link><guid isPermaLink="true">https://community.secnto.com//post/2643</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Mon, 13 Jan 2020 11:11:05 GMT</pubDate></item><item><title><![CDATA[Reply to CS101 Assignment 3 Solution and Discussion Fall-2019 on Mon, 13 Jan 2020 09:46:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zareen" aria-label="Profile: zareen">@<bdi>zareen</bdi></a> said in <a href="/post/2617">CS101 Assignment 3 Solution and Discussion Fall-2019</a>:</p>
<blockquote>
<p dir="auto">The title of the web page should be your VU-ID.<br />
Table Generator should get the table number and table length from user and generates table of that number up to the provided length with generate button.<br />
It should also count even and odd values in the output &amp; displays these counts in their respective fields.<br />
If user inputs value less than 1 it should not generate table but display an alert message with “Invalid Input”<br />
If user enters a float number then it should ignore decimal part in calculation.<br />
You have to make two tables with border. First table will have two table rows of <input /> and second table will have two table rows of <input /> and one table row of </p>
</blockquote>
<p dir="auto"><a href="https://youtu.be/09gloCFTXr8" target="_blank" rel="noopener noreferrer nofollow ugc">https://youtu.be/09gloCFTXr8</a></p>
]]></description><link>https://community.secnto.com//post/2642</link><guid isPermaLink="true">https://community.secnto.com//post/2642</guid><dc:creator><![CDATA[zareen]]></dc:creator><pubDate>Mon, 13 Jan 2020 09:46:19 GMT</pubDate></item></channel></rss>