You are on page 1of 2

Task2 v2.

2 PRM P21 May June 2021-22

Task 2 – using the membership data Extend the program in Task 1 so that a list of the first and last
names of members can be output in any of the following categories:
• Members who have chosen to work as volunteers.
• Volunteers who would like to work at the pier entrance gate.
• Volunteers who would like to work in the gift shop.
• Volunteers who would like to help with painting and decorating tasks.
• Members whose membership has expired (they have not re-joined this year).
• Members who have not yet paid their $75 fee.

*********************************************************************
Paste Task1 Here
*********************************************************************

300 Print “Kindly Choose one of the option from the Given list to output members Data”
310 Print “1. Members who have chosen to work as volunteers.”

320 Print “2. Volunteers who would like to work at the pier entrance gate ”

330 Print “3. Volunteers who would like to work in the gift shop.”

340 Print “4. Volunteers who would like to help with painting and decorating tasks.”

350 Print “5. Members whose membership has expired (they have not re-joined this year).”

360 Print “6 Members who have not yet paid their $75 fee”

370 Print “Kindly Enter your choice to list Members Names”


380 Input Choice
400 case of Choice

410 case 1:
420 Print “FirstName”, , ”LastName” // Heading of the list
430 For J= 1 to Mcounter
440 If IsVolunteer[J]= ‘Y’ or IsVolunteer[J]=’N’
450 Then
460 Print FirstName[j],,LastName[j]
470 Next J
480 case 2:
490 Print “FirstName”, , ”LastName” // Heading of the list
500 For K= 1 to Mcounter
510 If VWArea[k]= 1
520 Then
530 Print FirstName[k],,LastName[k]
540 Next K
550 case 3:
560 Print “FirstName”, , ”LastName” // Heading of the list
570 For L= 1 to Mcounter
Task2 v2.2 PRM P21 May June 2021-22

580 If VWArea[L]= 2
590 Then
600 Print FirstName[L],,LastName[L]
610 Next L
620 case 4:
630 Print “FirstName”, , ”LastName” // Heading of the list
640 For M= 1 to Mcounter
650 If VWArea[M]= 3
660 Then
670 Print FirstName[M],,LastName[M]
680 Next M

690 case 5:
700 Print “FirstName”, , ”LastName”,, “Membership Status” // Heading of the list
710 For N= 1 to Mcounter
730 Year=DateOfJoining[N]- ((DateOfJoining[N] DIV 10000)*10000)
740 ThisYear=TodaysDate- ((TodaysDate DIV 10000)*10000)
750 IF ThisYear>Year then Print FirstName[N],, LastName[N],, "Membership Expired"
760 Next N
770 case 6:
780 Print “FirstName”, , ”LastName” ,, “Payment Status” // Heading of the list
790 For O= 1 to Mcounter
800 If IsMoneyPaid[O]= ‘N’ or IsMoneyPaid[O]= ‘n’
810 Then
820 Print FirstName[O],,LastName[O],, “Fee Not yet paid”
830 Next O
850 Otherwise: Print "invalid CHOICE INPUT"
860 End Case

You might also like