CS202 Assignment 3 solution 2021

cs202 assignment 3 solution

Assignment No. 03
Semester: Spring 2021

CS202 Assignment 3 solution 2021

Total Marks: 20

Lectures Covered: 16-34

Due Date: 5th August 2021



Please read the following instructions carefully before submitting assignment. It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Assignment is copied (partial or full) from any source (websites, forums, students, etc)
CS202 Assignment 3 solution 2021 File Contact Us : WhatsApp +923478749900


The objectives of this assignment are:

  • To learn and practice the basic HTML tags.
  • Use of HTML Forms.
  • Application of JavaScript
  • Use of JavaScript Event Methods


  • This assignment is a Graded Assignment.
  • The assignment submitted through email will not be accepted.
  • This assignment is covering Lectures 16-34.


Guidelines CS202 Assignment 3 solution:


  • Code should be properly indented.
  • You can use any HTML Editor of your choice.


For any query about the assignment, contact at cs202@vu.edu.pk.

Suppose NCOC (National Command and Operation Centre) wants to collect data of all the people who are partially vaccinated and only received a single shot of the vaccine, so that they can be called to get a second shot of vaccine to get the most protection.

It is decided to develop an online form for all its CORONA Vaccination Centres situated all over the country, where they can enter data of all partially vaccinated people related to that centre.

Suppose NCOC hired you to develop a FORM for the vaccination centres where they can enter data of their partially vaccinated people. You have been given the FORM fields and validation rules by the NCOC.

CS202 Assignment 3 solution 2021 For File Contact Us : WhatsApp +923478749900

Following are the HTML form fields and their relevant JavaScript Validations. 


  • Pincode ID
  • Pincode ID should not be empty.
  • Length of Pincode ID should not be less than 11.


  • ID Card Number
  • ID Card Number should not be empty.
  • ID Card Number only can contain numbers without dashes.
  • ID Card Number must be at least 13 characters long.
  • Name
  • Name should not be empty.
  • Name should be in alphabetic characters only.
  • Length of Name should not be less than 8 characters.
  • Address
  • Address should not be empty.
  • Length of Address should not be less than 10.
  • Centre
  • At least and only one Centre should be selected.
  • First Dose Date
  • Date cannot be greater than today date.
  • Email
  • Email should not be empty.
  • Email should be in valid email format. i.e. abc@abc.com
  • Phone
  • Phone should not be empty.
  • Phone Number only can contain numbers.
  • Length of Phone must be 11 characters long.