Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

 

Instructions:

 

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)

 

 

Objective:

 

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

 

Note:

 

●       This assignment is a Graded Assignment.

●       The assignment submitted through email will not be accepted.

●       This assignment is covering Lectures 16-34.

 

Guidelines:

 

▪         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.

Assignment Statement:

 

 

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.

 

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

          

Ø  Pincode ID

v  Pincode ID should not be empty.

v  Length of Pincode ID should not be less than 11.

 

Ø  ID Card Number

v  ID Card Number should not be empty.

v  ID Card Number only can contain numbers without dashes.

v  ID Card Number must be at least 13 characters long.

Ø  Name

v  Name should not be empty.

v  Name should be in alphabetic characters only.

v  Length of Name should not be less than 8 characters.

Ø  Address

v  Address should not be empty.

v  Length of Address should not be less than 10.

Ø  Centre

v  At least and only one Centre should be selected.

Ø  First Dose Date

v  Date cannot be greater than today date.

Ø  Email

v  Email should not be empty.

v  Email should be in valid email format. i.e. abc@abc.com

Ø  Phone

v  Phone should not be empty.

v  Phone Number only can contain numbers.

v  Length of Phone must be 11 characters long.

          

 

Sample of output is given below.

 

 

The errors of different fileds are given below :

 

 

 

 

 

 

 

 

Complete Validated Form will be look like this :

 

 

 

Note:

 

You must upload .html file only. Assignment in any other format (extension) will not be accepted and will be awarded with zero marks.

 

 

 

 

 

BEST OF LUCK!

Views: 372

Attachments:

Replies to This Discussion

Any Idea Solution?

?

RSS

Looking For Something? Search Below

VIP Member Badge & Others

How to Get This Badge at Your Profile DP

------------------------------------

Management: Admins ::: Moderators

Other Awards Badges List Moderators Group

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

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