Implement a javascript program for the validation case

Assignment Help JAVA Programming
Reference no: EM13712993

You have to implement a JavaScript program for the validation case

Question- Write a JavaScript program for the validation case using the RegExp method.

Validate Date of Birth

a-The user must enter a DOB in the format mm/dd/yyyy/

b-The validation is a two-step process as described below.

c-Your program must validate the format first as given:

d-The part "mm", "dd", and "yy" cannot be "00", "00", and "0000" respectively.

e-The part "mm" must be two-digits such as "01 through 09" or "10 or 11 or 12".

f-The part "dd" must be two-digits such as "01 through 09" or "10 through 31".

g-The part "yyyy" must be between "1900 through 2099" inclusive.

h-Once the format has been validated, the next step is to verify the following:

i-The year entered cannot be greater than the current year (e.g., 2014)

j-If the year entered is the current year, then the day entered cannot be greater than today's date.

k-The date entered must follow these rules, <= if the month is February, <=30 if the month entered is: September, April, June, and November. <=31 for the remaining months.

Full Rating given to whoever can give the JavaScript code to satisfy these needs in the RegExp format.

Reference no: EM13712993

Questions Cloud

What is the equilibrium concentration of fescn2 : A 4.0 mL of 2.00 M Fe 3+ (aq) solution are mixed with 60.0 mL of 3.00 M SCN-(aq) solution. What is the equilibrium concentration of FeSCN2+ (aq) if the complex formation constant is 189 for the reaction
Direction of the electric field : A point charge of -4.00nC is at the origin, and a second point charge of 6.00nC is on the x axis at x = 0.750m. Find the magnitude and direction of the electric field at each of the following points on the x axis.
What is the % ionization and the ka value : A weak acid is placed in a beaker of pure water. At equilibrium, HA has a concentration of .05 M and it conjugate base has a concentration of .01 M, as well as [H3O+]. What is the % ionization? And the Ka value?
Implement a function to return a largest integer in array : The first argument of the function is a vector of int and the second argument is the number of consecutive integers to append to the vector starting from 0 and ending at "n - 1".
Implement a javascript program for the validation case : Write a JavaScript program for the validation case using the RegExp method - implement a JavaScript program for the validation case
What is the percent yield of o2 produced in the reaction : What is the mass in grams of O2 gas that was produced in the reaction as described above. What is the percent yield of O2 produced in the reaction
Write a main method that will simulate playing the game : On the Monty Hall game show, a contestant is given a choice of three doors. Behind one door is a car and behind the other two doors are goats.
Organic compound cyclohexanol is converted to cyclohexene : When heated with sulfuric or phosphoric acid, the organic compound cyclohexanol (C6H11OH) is converted to cyclohexene (C6H10). The overall balanced reaction can be represented as:
Write a javascript program for the validation : Write a JavaScript program for the validation case using the RegExp method - If the user enters a valid phone number, convert it to the form (123)456-7890 (if it is not already in this form).

Reviews

Write a Review

JAVA Programming Questions & Answers

  Demonstrate how the quicksort algorithm behaves

Demonstrate how the quicksort algorithm behaves. You will be implementing quicksort, but in a way that allows the program's user to visually observe how the algorithm proceeds by watching animated colored bars.

  Design the appropriate accessor and mutator methods

Design an Employee class that has fields for the following pieces of information: Employee Name Employee Number Next, design a class named ProductionWorker that extends the Employee class.

  Creates an array of six divsales objects

Write a program that creates an array of six DivSales objects. The program should ask the user to enter the sales for four quarters for each division.

  What type of output does the javadoc command

What type of output does the javadoc command generate and how do you view the output?

  What is the paintcomponent method how is it used in java

q1. what is the paintcomponent method? how is it used in java graphics? how does a program intentionally cause the

  Objectivesto gain experience with arrays to gain

objectivesto gain experience with arrays. to gain experience with generic algorithms.documentationexplain

  Implement the basic properties of a bank account

Define the class bankAccount to implement the basic properties of a bank account. An object of this class should store the subsequent data:

  Define render a model scene in java

Render a Model Scene in Java - Imagine you are prototyping animation for a Jurassic Park Movie

  Create javascript program to find gross pay for employees

Create JavaScript program which will find out the gross pay for each of three employees. Company pays "straight time" for first 40 hours worked by each employee and pays "time and a half".

  World data app

Prepare WorldDataApp project. It implements the NameIndex portion, including creating it in SetupProgram, and searching, viewing and updating it in UserApp program.

  Generate and manipulate music and images

Arrays are a fundamental and versatile tool for representing data of all shapes and sizes In this assignment, you'll see how arrays can be applied to generate and manipulate music and images.

  Client server monitoring system project design

client server monitoring system project design. The server adminstation can send messages to the clients and DESIGN WITH JAVA NETBEANS AND GUI.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd