SlideShare ist ein Scribd-Unternehmen logo
1 von 1
Downloaden Sie, um offline zu lesen
Mid-Term Exam
Internet Programming
Date:Oct 21 2011
Submission Deadline: Oct 26 12 Midnight KST.
Name:
Student Id:

Note: Your code will be evaluated based on the following:
1. It should contain comments so that any one who read the code would be able to understand what a particular statement is doing.
2. The variable names should not be chosen at random, i.e. they should make sense. For ex: for user name, one of the variable name can be userName.
3. The GUI should be presentable, you should extensively use CSS wherever it is possible.

NB: If two codes are correct, then the code that is more presentable will get higher marks.

Q1. Write a html/javascript program that does the following

A form has the following form elements: Name, Student Id, Address. There is no Submit button, and reset button.

For the address make a drop down box for the Country Name.
The country drop down box has the following options Korea, Japan, China.
If a user selects the country name as Korea, a new drop-down box should dynamically be generated on the fly. This drop-down box shows the cities that user can select from. For ex: if user selects country Korea, then cities could be
Suwon, Seoul, Busan, etc. You can choose as many cities you want but there should be at least 3 cities to choose from.
After a user successfully select the Country Name, City Name, a text box should dynamically appear to accept input about street address, House number and apartment name.

Do the following form validation:
1. Name should begin with an alphabet and should not contain any number. For ex: the following are invalid: 123,12abc, ab12, a123b, etc.
2. No spaces in name, for ex: the following is invalid: Jung Hun, Kim Yu Na. the following are valid: JungHun, KimYuNa.
3. Student id should consist of all numbers i.e. no alphabets should be embedded.
4. Street name, house number, and apartment name should not be empty
5. Name should not be empty
6. Student id should not be empty.

If a user clicks on the textbox for studentid, it should display the following: Enter your student id.
If a user clicks on the textbox for name, it should display the following: Enter your name without any spaces
If a user clicks on the textbox for address, it should display the following: Enter street name, house no, and apartment name.

The validation function for name should execute when the keyboard focus or mouse focus leaves the student text-box
The validation function for studentid should execute when the keyboard focus or mouse focus leave the studentid text-box
The validation function for address textbox should execute when the keyboard focus or mouse focus leaves the address textbox.

If user name has spaces, you can ask the user shall I remove spaces from it, for ex: if user enters the name as Kim Yu Na, then you can ask the user if system can correct it for him by changing name to KimYuNa.
Your code should contain functionality for correction of name if it contain spaces. This code should execute when mouse focus or keyboard focus leaves the student name textbox.

Q2. Write a html/javascript program that does the following

Make 6 boxes as a 2 row x 3 col matrix. i.e. there are 2 rows and each row has 3 columns.
Each box has a hidden card.
3 pair of boxes, each pair has the same card number.
Card numbers are assigned randomly.
In the beginning all cards are hidden.
When user click on a box, it flips and shows the card no.
When user clicks on another box, it flips and shows the card no.
If the card no in both the boxes match, they disappear and an empty slot appears.
if the card no don't match, they flip and hide the number.

Weitere ähnliche Inhalte

Andere mochten auch

Ampersand World - The Talent Hub
Ampersand World - The Talent HubAmpersand World - The Talent Hub
Ampersand World - The Talent Hubarianejanis
 
Acto de entrega de premios(2) 2016
Acto de entrega de premios(2) 2016Acto de entrega de premios(2) 2016
Acto de entrega de premios(2) 2016Isabel ST
 
Oktobra kataloga prezentacija
Oktobra kataloga prezentacijaOktobra kataloga prezentacija
Oktobra kataloga prezentacijaDace Āboliņa
 
¿Qué tiempo hace hoy?
¿Qué tiempo hace hoy?¿Qué tiempo hace hoy?
¿Qué tiempo hace hoy?Salva Cuenca
 
ملزمة الرياضيات - السادس العلمي
ملزمة الرياضيات - السادس العلمي   ملزمة الرياضيات - السادس العلمي
ملزمة الرياضيات - السادس العلمي Ahmed Mahdi
 

Andere mochten auch (10)

Ampersand World - The Talent Hub
Ampersand World - The Talent HubAmpersand World - The Talent Hub
Ampersand World - The Talent Hub
 
Kosong
KosongKosong
Kosong
 
Acto de entrega de premios(2) 2016
Acto de entrega de premios(2) 2016Acto de entrega de premios(2) 2016
Acto de entrega de premios(2) 2016
 
ILM Cert
ILM CertILM Cert
ILM Cert
 
Oktobra kataloga prezentacija
Oktobra kataloga prezentacijaOktobra kataloga prezentacija
Oktobra kataloga prezentacija
 
Milieu
MilieuMilieu
Milieu
 
Alucinando
AlucinandoAlucinando
Alucinando
 
Ihr Profi für den guten Ton
Ihr Profi für den guten TonIhr Profi für den guten Ton
Ihr Profi für den guten Ton
 
¿Qué tiempo hace hoy?
¿Qué tiempo hace hoy?¿Qué tiempo hace hoy?
¿Qué tiempo hace hoy?
 
ملزمة الرياضيات - السادس العلمي
ملزمة الرياضيات - السادس العلمي   ملزمة الرياضيات - السادس العلمي
ملزمة الرياضيات - السادس العلمي
 

Ähnlich wie Mid term exam

Send Mobile SMS Web Surveys
Send Mobile SMS Web SurveysSend Mobile SMS Web Surveys
Send Mobile SMS Web SurveysRaghhav Sammrat
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 
Mobile Devices Materials
Mobile Devices MaterialsMobile Devices Materials
Mobile Devices MaterialsSamantha Petree
 
Variables lesson tasks
Variables lesson tasksVariables lesson tasks
Variables lesson taskseurythmic
 
JAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxLucky Ally
 
Ee java lab assignment 3
Ee java lab assignment 3Ee java lab assignment 3
Ee java lab assignment 3Kuntal Bhowmick
 
Ux tips for creating user friendly forms
Ux tips for creating user friendly formsUx tips for creating user friendly forms
Ux tips for creating user friendly formsinboundmantra
 
OverviewWe will be adding some validation to our Contact classes t.pdf
OverviewWe will be adding some validation to our Contact classes t.pdfOverviewWe will be adding some validation to our Contact classes t.pdf
OverviewWe will be adding some validation to our Contact classes t.pdffathimaoptical
 
The two-party systemCheck out this list 
 Thats the .docx
The two-party systemCheck out this list 
 Thats the .docxThe two-party systemCheck out this list 
 Thats the .docx
The two-party systemCheck out this list 
 Thats the .docxrhetttrevannion
 
Lession 5 the columns of a table
Lession 5 the columns of a tableLession 5 the columns of a table
Lession 5 the columns of a tableĐỗ Đức Hùng
 
Uml Interview Questions
Uml Interview QuestionsUml Interview Questions
Uml Interview QuestionsRaj Chanchal
 
Since the instructions for the final project are standardized and .docx
Since the instructions for the final project are standardized and .docxSince the instructions for the final project are standardized and .docx
Since the instructions for the final project are standardized and .docxedgar6wallace88877
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01abdalodainat
 
CHAPTER-2.ppt
CHAPTER-2.pptCHAPTER-2.ppt
CHAPTER-2.pptTekle12
 
Using Eye Tracking To Analyse Form Design
Using Eye Tracking To Analyse Form DesignUsing Eye Tracking To Analyse Form Design
Using Eye Tracking To Analyse Form DesignAcuity ETS Limited
 

Ähnlich wie Mid term exam (20)

Send Mobile SMS Web Surveys
Send Mobile SMS Web SurveysSend Mobile SMS Web Surveys
Send Mobile SMS Web Surveys
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Mobile Devices Materials
Mobile Devices MaterialsMobile Devices Materials
Mobile Devices Materials
 
IZ Workshop 2014: B1 fair housing lottery procedures
IZ Workshop 2014: B1 fair housing lottery proceduresIZ Workshop 2014: B1 fair housing lottery procedures
IZ Workshop 2014: B1 fair housing lottery procedures
 
Variables lesson tasks
Variables lesson tasksVariables lesson tasks
Variables lesson tasks
 
Java Practice Set
Java Practice SetJava Practice Set
Java Practice Set
 
Presentation
PresentationPresentation
Presentation
 
JAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docxJAVA practical Exam Questions (1).docx
JAVA practical Exam Questions (1).docx
 
Ee java lab assignment 3
Ee java lab assignment 3Ee java lab assignment 3
Ee java lab assignment 3
 
Ux tips for creating user friendly forms
Ux tips for creating user friendly formsUx tips for creating user friendly forms
Ux tips for creating user friendly forms
 
OverviewWe will be adding some validation to our Contact classes t.pdf
OverviewWe will be adding some validation to our Contact classes t.pdfOverviewWe will be adding some validation to our Contact classes t.pdf
OverviewWe will be adding some validation to our Contact classes t.pdf
 
The two-party systemCheck out this list 
 Thats the .docx
The two-party systemCheck out this list 
 Thats the .docxThe two-party systemCheck out this list 
 Thats the .docx
The two-party systemCheck out this list 
 Thats the .docx
 
Lession 5 the columns of a table
Lession 5 the columns of a tableLession 5 the columns of a table
Lession 5 the columns of a table
 
Uml Interview Questions
Uml Interview QuestionsUml Interview Questions
Uml Interview Questions
 
Since the instructions for the final project are standardized and .docx
Since the instructions for the final project are standardized and .docxSince the instructions for the final project are standardized and .docx
Since the instructions for the final project are standardized and .docx
 
Fahri tugas cloud1
Fahri tugas cloud1Fahri tugas cloud1
Fahri tugas cloud1
 
Excel Intro Part1
Excel Intro Part1Excel Intro Part1
Excel Intro Part1
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01
 
CHAPTER-2.ppt
CHAPTER-2.pptCHAPTER-2.ppt
CHAPTER-2.ppt
 
Using Eye Tracking To Analyse Form Design
Using Eye Tracking To Analyse Form DesignUsing Eye Tracking To Analyse Form Design
Using Eye Tracking To Analyse Form Design
 

Mehr von H K

Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment3
Assignment3Assignment3
Assignment3H K
 
Induction
InductionInduction
InductionH K
 
Solution3
Solution3Solution3
Solution3H K
 
Solution2
Solution2Solution2
Solution2H K
 
Mid-
Mid-Mid-
Mid-H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Assignment4
Assignment4Assignment4
Assignment4H K
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3H K
 
Proof
ProofProof
ProofH K
 
Resolution
ResolutionResolution
ResolutionH K
 
Assignment description
Assignment descriptionAssignment description
Assignment descriptionH K
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2H K
 
Set
SetSet
SetH K
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1H K
 
Logic
LogicLogic
LogicH K
 
Introduction
IntroductionIntroduction
IntroductionH K
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 solH K
 
Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solutionH K
 
Violinphoenix
ViolinphoenixViolinphoenix
ViolinphoenixH K
 

Mehr von H K (20)

Assignment4
Assignment4Assignment4
Assignment4
 
Assignment3
Assignment3Assignment3
Assignment3
 
Induction
InductionInduction
Induction
 
Solution3
Solution3Solution3
Solution3
 
Solution2
Solution2Solution2
Solution2
 
Mid-
Mid-Mid-
Mid-
 
Assignment4
Assignment4Assignment4
Assignment4
 
Assignment4
Assignment4Assignment4
Assignment4
 
Dm assignment3
Dm assignment3Dm assignment3
Dm assignment3
 
Proof
ProofProof
Proof
 
Resolution
ResolutionResolution
Resolution
 
Assignment description
Assignment descriptionAssignment description
Assignment description
 
Dm assignment2
Dm assignment2Dm assignment2
Dm assignment2
 
Set
SetSet
Set
 
Dm assignment1
Dm assignment1Dm assignment1
Dm assignment1
 
Logic
LogicLogic
Logic
 
Introduction
IntroductionIntroduction
Introduction
 
Assignment 2 sol
Assignment 2 solAssignment 2 sol
Assignment 2 sol
 
Assignment sw solution
Assignment sw solutionAssignment sw solution
Assignment sw solution
 
Violinphoenix
ViolinphoenixViolinphoenix
Violinphoenix
 

Kürzlich hochgeladen

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 

Kürzlich hochgeladen (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 

Mid term exam

  • 1. Mid-Term Exam Internet Programming Date:Oct 21 2011 Submission Deadline: Oct 26 12 Midnight KST. Name: Student Id: Note: Your code will be evaluated based on the following: 1. It should contain comments so that any one who read the code would be able to understand what a particular statement is doing. 2. The variable names should not be chosen at random, i.e. they should make sense. For ex: for user name, one of the variable name can be userName. 3. The GUI should be presentable, you should extensively use CSS wherever it is possible. NB: If two codes are correct, then the code that is more presentable will get higher marks. Q1. Write a html/javascript program that does the following A form has the following form elements: Name, Student Id, Address. There is no Submit button, and reset button. For the address make a drop down box for the Country Name. The country drop down box has the following options Korea, Japan, China. If a user selects the country name as Korea, a new drop-down box should dynamically be generated on the fly. This drop-down box shows the cities that user can select from. For ex: if user selects country Korea, then cities could be Suwon, Seoul, Busan, etc. You can choose as many cities you want but there should be at least 3 cities to choose from. After a user successfully select the Country Name, City Name, a text box should dynamically appear to accept input about street address, House number and apartment name. Do the following form validation: 1. Name should begin with an alphabet and should not contain any number. For ex: the following are invalid: 123,12abc, ab12, a123b, etc. 2. No spaces in name, for ex: the following is invalid: Jung Hun, Kim Yu Na. the following are valid: JungHun, KimYuNa. 3. Student id should consist of all numbers i.e. no alphabets should be embedded. 4. Street name, house number, and apartment name should not be empty 5. Name should not be empty 6. Student id should not be empty. If a user clicks on the textbox for studentid, it should display the following: Enter your student id. If a user clicks on the textbox for name, it should display the following: Enter your name without any spaces If a user clicks on the textbox for address, it should display the following: Enter street name, house no, and apartment name. The validation function for name should execute when the keyboard focus or mouse focus leaves the student text-box The validation function for studentid should execute when the keyboard focus or mouse focus leave the studentid text-box The validation function for address textbox should execute when the keyboard focus or mouse focus leaves the address textbox. If user name has spaces, you can ask the user shall I remove spaces from it, for ex: if user enters the name as Kim Yu Na, then you can ask the user if system can correct it for him by changing name to KimYuNa. Your code should contain functionality for correction of name if it contain spaces. This code should execute when mouse focus or keyboard focus leaves the student name textbox. Q2. Write a html/javascript program that does the following Make 6 boxes as a 2 row x 3 col matrix. i.e. there are 2 rows and each row has 3 columns. Each box has a hidden card. 3 pair of boxes, each pair has the same card number. Card numbers are assigned randomly. In the beginning all cards are hidden. When user click on a box, it flips and shows the card no. When user clicks on another box, it flips and shows the card no. If the card no in both the boxes match, they disappear and an empty slot appears. if the card no don't match, they flip and hide the number.