Assignment 3
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Concepts
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Your Task
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Submission
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Your Marks
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Two Reviews
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Criteria
Concepts
Before starting this assignment you should have completed Workshop 1-7.
Assignment 3
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Concepts
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Your Task
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Submission
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Your Marks
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Two Reviews
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Criteria
Concepts
Before starting this assignment you should have completed Workshop 1-7.
In addition to previously covered material, this assignment will test your skill in the following areas.
Selection
Iteration
Expressions
Writing Functions
Validation
Booleans
String Handling
http://usqstudydesk.usq.edu.au/m2/mod/assignment/view.php?id=94885Top
Validation in Forms
When you are joining a website, making a purchase, enrolling in subjects, etc you will have to interact with HTML forms. These forms generally operate by using javascript. It is typical for the javascript present in the web page to check most of the elements of the form in order to see if the entries are plausible, before submitting the data to a server for further checking and processing. Examples include:-
Checking to see if your phone number resembles a phone number.
Checking to see if your zip code or post code resembles a valid zip code or post code.
Checking to see if your email address resembles a valid email address.
In this assignment you will write a program that will check the information for valid credit card.
Your Task
Refer to
http://usqstudydesk.usq.edu.au/m2/mod/resource/view.php?id=114097Assignment 3 Technical Specification for the tasks you need to complete in the assignment.
Documentation and formatting
Your functions should have a definition comment.
Loops and selection statements should have their bodies indented and enclosed in { curly braces }.
Within the code, blocks of statements should be…





