Results 1 to 1 of 1

Thread: pseudocode for view portfolio!!

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2005
    Posts
    840

    Resolved pseudocode for view portfolio!!

    here is my pseudocode for view portfolio....anyone can give some comment on the pseudocode whether good enough or still can improves??
    VB Code:
    1. Client Pseudocode
    2. Begin                      
    3. Click Personal portfolio screen    
    4. Personal portfolio screen display      
    5. Enter Customer ID as A
    6. Call displayAllShare (A, B, C, D)  
    7.        while not end of file                   
    8.               Print B, C, D        
    9.        End while               
    10. End
    11.                    
    12. Server Pseudocode
    13. Procedure displayAllShare (A, B, C, D)     
    14.              Accept A              
    15.     Open server database   
    16.     Read Trading account table     
    17.     Get number of rows in trading account, N
    18.     For x = 1, N                   
    19.              
    20.                                                                                      
    21.              If record(x) = A          
    22.                 Then B = Share ID          
    23.                C = Shares Amount           
    24.                D = Buying Price        
    25.         End If                   
    26.     End for                  
    27.     Close server database                
    28. Return                         
    29. End Procedure
    Last edited by kenny_oh; Oct 28th, 2005 at 12:28 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
  •  



Click Here to Expand Forum to Full Width