Fancy A Challenge!
- From: "Webbouy" <Webbouy@xxxxxxxxxxx>
- Date: 28 Sep 2006 11:03:24 -0700
Create a Perl Program to acquire Customer information for an optician's
practice.
When the program is run, the user should be prompted to enter a four
digit customer reference number.
The user should then be prompted to enter new customer details.
These prompts should then be given in the following sequence:
Title
Surname
Forename
Sex
Date of birth
Vision measurement
All inputs should be verified. any input which fails the verification
shhould result in a suitable error message being displayed, along with
another prompt for the same item entered again. the verification should
be as follows:
Customer Reference _ 4 digits only
Title - between 1 and 4 alphabetic chracters. The allowable list of
titles is Dr, Lady, Lord, Miss, Mr, Mrs, Ms, Sir.
Surname - between 1 and 20 alphabetic charaters
Forename - between 1 and 20 alphabetic charaters
Sex - 1 character, either M or F (uppper or lower case acceptable)
Date of birth - in the format DD/MM/YYYY
Vision measurement - 1 or 2 digits (i.e between 1 and 99)
te date of birth does not have need to be shecked for validity, e.g.
99/99/999 should be accepted.
However, you should check that the digits and forward slash chracters
are in the DD/MM/YYYY form, e.g. 3/10/2004 should be regeted where as
03/10/2004.
if you can complete this task send your written program to
Webbouy@xxxxxxxxxxx i would Appreciate knowing to do this my self thank
you!
.
- Follow-Ups:
- Re: Fancy A Challenge!
- From: Uri Guttman
- Re: Fancy A Challenge!
- Prev by Date: Re: hash slices
- Next by Date: Re: cgi script
- Previous by thread: hash slices
- Next by thread: Re: Fancy A Challenge!
- Index(es):
Relevant Pages
|