1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CIW Design TMA 11; section 2 part B, web languages-PERL

Discussion in 'New Members Introduction' started by CAMBA, May 30, 2007.

  1. CAMBA

    CAMBA New Member

    4
    0
    1
    Hiya,
    I am studying the CIW design and got to the TMA 11, revision supplement of the section 2- part B, where I just can not get my head on. PERL is just not for me, I had tried and read but after few months I am just loosing interest in it.
    Could anyone that have this section done, tell me how?!
    I did the first part where is requested to create the optician.pl and then....:( , please, I just need this help. I have done all this course and upset me to know that because of this chapter i won't be able to continue:blink
    cheers,
    camba
     
  2. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,623
    115
    224
    Hi and welcome to CF!

    I haven't done CIW, but I *am* a Perl programmer.

    I'm fairly sure we have looked at this TMA before on this forum.

    In any case - doing this sort of thing is a standard item if you intend to be any good at this job!
    The thing to do is 1) stop panicking (easy to say I know!) and 2) reread the requirements, breaking things down into sections.

    What have you managed so far?

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  3. tripwire45
    Honorary Member

    tripwire45 Zettabyte Poster

    13,493
    179
    287
    I'm only vaguely familiar with that certification. Is Perl absolutely required or can another language, Python for example, be substituted?

    Also, do you know any other programming languages (such as JavaScript)? The issue may be with Perl or it may be that you have difficulty making your brain work with programming in general. Just a thought.

    -Trip
     
    Certifications: A+ and Network+
  4. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,623
    115
    224
    I thought I recognized the question.

    This very item was discussed previously here on this forum.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  5. CAMBA

    CAMBA New Member

    4
    0
    1
    Hiya,

    I should not worry, I know, I read and re read all over many times but when come to program all just look like spaguetti and then I got consufed.
    1st, request to make a program that the user should be prompted to enter 4 digits customer ref. and then to enter "new customer details" in the sequence of title, surname, forename, sex, DOB, vision measurements. all imputs to be verified. Error will appear with suitable error message displayed, along with a new chance to enter correctly.
    I DID THIS PART!!:dry
    2nd, the verification should be:
    -customer ref (4 digits only)
    -title between 1 and 4 alpha.
    -surname between 1-20 alpha.
    -forename: same thing.
    -sex 1 character M or F.
    -DOB as DD/MM/YYYY
    -vision measurements 1 or 2 digits (1-99)
    HERE I GOT MIXED UP ...HOW??!! I will give anothe rread but then i just don't know what to use:cry:
     
  6. hbroomhall

    hbroomhall Petabyte Poster Gold Member

    6,623
    115
    224
    One way to do the verification would be to use pattern-matching, aka regular expressions.

    Harry.
     
    Certifications: ECDL A+ Network+ i-Net+
    WIP: Server+
  7. stuPeas

    stuPeas Megabyte Poster

    774
    12
    76
    Certifications: C&G Electronic, CIW Associate (v5).
    WIP: CIW (Website Design Manager)
  8. stuPeas

    stuPeas Megabyte Poster

    774
    12
    76

    You Say you "DID THIS PART", but if you havent actualy included the varification (maybe using a regular expression and an "if" or "while" statement after each input from the customer), then you havent actualy done this part.

    I will continue on the CIW forum.
     
    Certifications: C&G Electronic, CIW Associate (v5).
    WIP: CIW (Website Design Manager)
  9. wizard

    wizard Petabyte Poster

    5,763
    35
    174
    Hi there and welcome 8)
     
    Certifications: SIA DS Licence
    WIP: A+ 2009

Share This Page

Loading...