You are on page 1of 2

declare the record, arrays and any other variables

start
pick_up = 1
payment = 0
total_valid = 0
total_class = 1

with one_sannfiesta_record do
start
repeat
print "please enter class form"
read class_form
print "please enter stall name"
read stall_name
print "please enter payment"
read payment

while (pick_up <= 5) do

if (payment = 5 or payment = 10 or payment = 15 or payment = 20) do


start
calculate total_payment
calcualte total_denomination
end
endif

if (total_payment = 500) then


start
valid_pickup = "Valid"
total_valid = total_valid + 1
end
else
valid_pickup = "Not Valid"
endif

if (pick_up = 5 AND total_payment > 0) then


start
valid_pickup = "Valid"
total_valid = total_valid + 1
end
else
valid_pickup = "Not Valid"
endif

endwhile

total_class = total_class + 1

until total_class = 15

end

for class = 1 to 15 do
start
calculate net_income
calcualte expenditure
calculate pta_contribution
calcualte charitable_fund
end
endfor

print "Classes Stall Names PTA Contributions Charitable Fund Net


Income"

start
with one_sannfiesta_record do
for class = 1 to 15 do
print (class_form, stall_name, pta_contribution, charitable_fund
net_income)
endfor
end

end

You might also like