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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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