Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25

Thread: programmin project.. need help

  1. #21
    Join Date
    May 2008
    Posts
    602
    Rep Power
    0

    Exclamation any 1 kno if i am on thr rite track

    i would like to kno if this is finish for the pseudocode registration in # 1


    Begin
    character cName, cIdentificationNumber cPhoneNumber, cAddress
    Numeric nEntryLevelForm, nAvailableEntryLevelForm
    Display "Enter Member Name"
    Accept cName
    Display "Enter the age of member"
    Accept nAge
    Display "Enter Identification Number"
    Accept nIdentificationNumber
    Display "Enter Phone Number"
    Accept nPhoneNumber
    Display "Enter Address"
    Accept cAddress
    new member must sign up entry level from completed
    else
    error is generated AND member will not registered
    if
    member completed entry level form member is registered
    end


  2. #22
    Join Date
    Apr 2005
    Posts
    1,333
    Rep Power
    0

    Default

    After you accept the inputs, you need to check if each one is an empty string. if you feel adventurous, you can also validate the type of data. e.g check if nAge is a number etc.

    Set a variable to hold a value if any field does not meet the validation criteria. Then you can, at the end, check the value of the variable and either accept the registration or reject it with an error message.
    The fox was probably right - they could have been sour grapes.

  3. #23
    Join Date
    May 2008
    Posts
    602
    Rep Power
    0

    Default

    no i dont feel adventurous i just want the easy way to do it

  4. #24
    Join Date
    Jun 2006
    Posts
    164
    Rep Power
    0

    Default

    Basically all you have to do is put yourself in the situation. You are the new member what do you do and then switch places and become the administrator you are accepting this information what do i do? where are my tools. Its like some1 previously said start getout out of bed put on u slippers then. ....
    If a did last semester mi do it for you cause mi did need the practice but done wid tht.
    MB:- ECS GeForce 7050 AM2 4800+ HD:- 120 IDE, 180 SATA GC:- Palit 256mb 2400 pro Mem:- 1024 x 2 Corsair XM2.

  5. #25
    Join Date
    May 2008
    Posts
    602
    Rep Power
    0

    Default

    is this rite

    Begin
    Numeric nIdNumber, nPhoneNumber
    Character cFirstName, cLastName, cAddress
    Display "Enter member First Name"
    Accept cFirstName
    Display "Enter member Last Name"
    Accept cLastName
    Display “Enter member Address”
    Accept cAddress
    Display "Enter member Identification Number"
    Accept IdNumber
    Display "Enter member PhoneNumber"
    Accept nPhoneNumber
    While (cFirstName=” ” AND cLastName=” “AND cAddress=” “AND nPhoneNumber= 0 AND nIdNumber =0)
    Display “not registered”
    Else
    Display “registered”
    EndWhile
    n=function check {cFirstName, cLastNumber, cAddress, nIdNumber, nPhoneNumber}
    End
    Save new member Information to database
    Last edited by jason_200; Mar 31, 2009 at 04:23 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •