1.    Use prompt() function to ask user entering his/her first and last names.

2.      Check whether user's information is in the right format.
If not, give an alert box as below:

Also, ask him/her to enter again until he/she gets it.

3.    After user enter his/her name, use document.write() function to display user’s name and ask him/her to enter 3 numbers as the message below.

4.    Use prompt function to take user’s three numbers as below.

5.    Finally, display the total of the three numbers that user entered as the format below.

 

6.   Use prompt() function to ask user entering his/her phone number.

7.      Check whether user's information is in the right format.
If not, give an alert box as below:

Also, ask him/her to enter again until he/she gets it.

8.    After user enter his/her phone number, use document.write() function to display “I will call you at (xxx) xxx-xxxx” as the message below. Note that the number is same as user’s input.

9.    Use prompt() function to ask user entering his/her email address.

10.      Check user's information is in the right format.
If not, give an alert box as below:

Also, ask him/her to enter again until he/she gets it.

11.    After user enter his/her email address, use document.write() function to display “Your test score will be sent to xxxxxxx@xxxxx.xxx”  as the message below.