Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,049 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,560 people online right now. Registration is fast and FREE... Join Now!




Procedure help

 
Reply to this topicStart new topic

Procedure help, Need help with this procedure

AnnYzz
24 Jul, 2008 - 07:03 AM
Post #1

New D.I.C Head
*

Joined: 18 Jul, 2008
Posts: 4


My Contributions
I'm like 90% sure this is wrong ......... I need help

This wot i had to do:

Write a procedure that will check for paid-up members. This procedure will be included in the
program that the secretary will use when checking if people are allowed into meetings.

And this is wot i came up wit.

CODE

(There are no global variables)
Main
         choice is a local variable OF TYPE Integer
         WHILE choice < > 3
          DO
                  DISPLAY “Would you like to all the soccer club members?”
                  DISPLAY “Select Yes or No”
                  DISPLAY “1.Paid-up Members”
                  DISPLAY “2.None Paid-up Members”
                  DISPLAY “3.End the program”
                  REPEAT
                          ACCEPT choice
                          IF choice < 1 or choice > 3
                                 THEN DISPLAY “Error: choose again”
                         ENDIF
                  UNTIL choice > 0 AND choice < 3
                  IF choice = 1 THEN Paid-up Members
                  IF choice = 2 THEN None Paid-up Members
         ENDDO
         DISPLAY choice
         UNTIL choice = 3
ENDPROCEDURE



Help!! smile.gif
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Procedure Help
24 Jul, 2008 - 11:39 AM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
What language is this?
User is offlineProfile CardPM
+Quote Post

Damage
RE: Procedure Help
24 Jul, 2008 - 09:45 PM
Post #3

D.I.C Addict
Group Icon

Joined: 5 Jun, 2008
Posts: 738



Thanked: 7 times
Dream Kudos: 75
My Contributions
is this supposed to be pseudo code?

User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/1/08 05:37PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month