You are on page 1of 2

Task1

Declare fname[n],lname[n]:string

Declare vol:char

Declare vlunter[n]:Boolean

Declare choice:integer

Declare gate[n],sop[n],paint[n]:char

Declare doj[n]:string

Declare paid[n]:char

For x1 to n

Output “enter first name”

Input fname[x]

Ouput “enter last name”

Input lname[x}

Output “do yu want to be a vlunter.Y/N”

Input vol

If Vol=”Y” or Vol=”y” then

Voulnetr[x]=true

Output “chose 1 for pier entrance gate,Choose 2 for the gift shop and choose 3 for painting
and decoration”

Input choice

While choice<1 or choice>3 do

Ouput “invalid choice.cooose between 1 to 3 .re-enter”

Input choice”

End while

Case choice of

1:gate[x]”y”

2:shop[x]”y”

3:paint”y”

End case
Output “enter date of joining”

Input doj[x]

Output “have you paid member ship fee.Y/N”

Input paid[x]

Next

You might also like