Dear VU (Virtual University of Pakistan) Students, here you read and download CS101 Assignment No.3 Solution Fall 2019(2020). (VU Ki Duniya) Provide single download link. Easy download step.  VU Ki Duniya Previously shared CS609Assignment No.3 Solution fall – 2019(2020). For latest update you also like our Facebook page, YouTube channel. You may also like CS101 Finalterm Short Notes Lec 23 to 45.


Solution Code:
<html><head><title>Your VU-ID</title><script type="text/javascript"> function generateTable(){var number = document.getElementById('number').value;var length = document.getElementById('length').value;if(parseInt(number) < 1 || parseInt(length) < 1){alert("Invalid Input!");return;}var tableArr = new Array();length = parseInt(length);number = parseInt(number);var oddCount = 0;var evenCount = 0;var checkNumber;for(var i = 1; i <= length; i++){var calc = number + " X " + i + " = " + (number * i) + '\n';tableArr.push(calc);checkNumber = number * i;if(checkNumber % 2 == 0){evenCount++;}else{oddCount++;}}document.getElementById('even').value = evenCount;document.getElementById('odd').value = oddCount;document.getElementById('table-area').value = tableArr.join("");}</script></head><body style="text-align: center; background-color: aqua;" ><h1><u>Table Genrator</u></h1><table border="1" align="center" style="background-color:
lightgreen;"><tr><td>Enter Table Number</td><td><input type="number"
id="number"></td></tr><tr><td>Enter Table Length</td><td><input type="number"
id="length"></td></tr></table><br><button id="gen-btn" onclick="generateTable()">Generate</button><br><br><table border="1" align="center" style="background-color:
lightgreen;"><tr><td>Total Even Values</td><td><input type="text" readonly
id="even"></td></tr><tr><td>Total Odd Values</td><td><input type="text" readonlyid="odd"></td></tr><tr ><td colspan="2" align="center"><textarea readonly id="table-area" rows="20" cols="38"
placeholder="Table output will be displayed here."></textarea></td></tr></table></body></html>
Download Solution File:


You can Also Download Midterm Solved Past Papers, Final term Solved past Papers, GDB Solutions, Assignment Solutions, and Solved Quizzes files, PPT Slides, Handouts and Short Notes.

Post a Comment

  1. Do this hack to drop 2 lbs of fat in 8 hours

    Well over 160,000 women and men are utilizing a easy and secret "liquid hack" to burn 1-2 lbs every night while they sleep.

    It's easy and it works all the time.

    Here's how you can do it yourself:

    1) Get a glass and fill it with water half the way

    2) And then learn this strange hack

    so you'll become 1-2 lbs skinnier the next day!

    ReplyDelete

 
Top