We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


+ Link For Past Papers, Solved MCQs, Short Notes & More

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 03
Semester: Fall 2019
Introduction to Computing - CS101


Total Marks: 20


Due Date: 16-01-2020


After solving this assignment, students will learn about,

  • Interaction of JavaScript with HTML.
  • Handling of JavaScript functions, loops, decision structure & event handling.

Instructions: Read the following instructions carefully before submitting the assignment.

It should be clear that your assignment will not get any credit if:

§  The assignment is submitted through email or after due date.

§  The assignment is not in the .html format.

§  The submitted assignment does not open or file is corrupt.

§  Assignment is copied(partial or full) from any source (websites, forums, students, etc)

§  Assignment is in any other format like images, PDF, “.txt”, “.doc”, Zip, rar etc.

Question: You are required to make a table generator webpage.


  • The title of the web page should be your VU-ID.
  • 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.
  • It should also count even and odd values in the output & displays these counts in their respective fields.
  • If user inputs value less than 1 it should not generate table but display an alert message with “Invalid Input”
  • If user enters a float number then it should ignore decimal part in calculation.  
  • 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 <textarea>. 
  • Your output should be displayed inside <textarea> of 38 columns, 20 rows and colspan 2.
  • Heading, tables and button should be aligned to center.
  • You are required to make same design and format of output as given in below sample.
  • However you can choose color scheme of your own choice (other than white) but the background color of your webpage and table should be different.


  • You can also use \n in JavaScript instead of <br> for line break in output.
  • If you have any queries, you can email at cs101@vu.edu.pk.



+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 250


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Latest Activity

Mani Siddiqui BS VIII posted a status
"کبھی کبھی دل چاہتا ہے کہ میں کسی سے دل کی باتیں کہہ دوں اور وہ میرے بکھرے الفاظ کو ترتیب دے کر میری ساری باتیں سمجھ جائے"
5 minutes ago
mansoor liked +! ! ! Mano ! ! !+'s discussion issy kehty hn help
45 minutes ago
mansoor replied to +! ! ! Mano ! ! !+'s discussion issy kehty hn help
52 minutes ago
+! ! ! Mano ! ! !+ replied to +! ! ! Mano ! ! !+'s discussion issy kehty hn help
1 hour ago
Somia and KWL ex student are now friends
1 hour ago
hafsa updated their profile
1 hour ago
mansoor commented on + IUUOƆƎUT +'s blog post China coronavirus: A new Virus in China
1 hour ago
mansoor commented on + IUUOƆƎUT +'s blog post Coronavirus in the Islamic world
1 hour ago
mansoor replied to zohaib iftikhar's discussion ...* HER BEMARI KA ILAJ ...*
2 hours ago
mansoor liked +!!!StRaNGeR!!! +'s discussion دوسرا عشق نہ کروں، جی بہتر
2 hours ago
mansoor liked +!!!StRaNGeR!!! +'s discussion تم نہ آۓ ! تو ، کیا سحر نہ ہوئی ؟۔
2 hours ago
mansoor liked +!!!StRaNGeR!!! +'s discussion مختصر سی یہ زندگانی ہے
2 hours ago

© 2020   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service