How to write this as an algorithm or pseudocode?

An algorithm that accepts as input the names of 22 persons attending a conference.Each person falls under one of two categories:

The algorithm should determine the category in which the attendee falls.The algorithm should also determine the number of attendees who fall under each category.A participant pays a registration fee of $2000.00 and a presenter $1000.00.A listing of category and the total number of persons in each category must be printed ,along with the total amount of money generated in each section.
Asked Feb 23, 2013
The simplest way to do this is to use a spreadsheet with columns for Name, Presenter Amount and Participant Amount. By counting the number of entries in each of the amount columns and adding the amount in each payment column, you have your information to print.
Answered Feb 23, 2013
Edited Feb 23, 2013
I'm sorry it should be written in a pascal language.
smizle1 Feb 23, 2013
That's like shooting a flea with a cannon. :-)

Create arrays 22 deep for each of the three variables above. Use an integer list pointer and the Pascal "Read" statement to step through the arrays adding the name and values in the correct column as described above.

The site below is a free Pascal tutorial:
Rob Feb 23, 2013

TIP: If it's not your answer to this question, please click "Leave a Comment" button under the question to communicate with the question owner.