. Develop an algorithm pseudo-code or flowchart that will accept the names of each sales staff members and their total sales for the month. The algorithm must calculate the commission at 5 % of their total sales amount. It should

do {

prompt for name, sales
accept name, sales
if name == "" then exit do
commission = sales * 0.05
print name, sales, commission
}

or, if you don't print the data till the end, you will have to store the info in an array.

Here's a simple algorithm in pseudo-code that accepts the sales staff members' names and their total sales for the month, and calculates their commission at 5% of their total sales amount:

1. Start the algorithm.
2. Initialize a variable to store the commission rate (5% in this case).
3. Initialize a counter variable to keep track of the number of staff members.
4. Initialize a loop to accept the names and sales amounts for each staff member.
5. Repeat the following steps until all staff members have been processed:
a. Prompt the user to enter the name of the staff member.
b. Read the name of the staff member.
c. Prompt the user to enter the total sales amount for the staff member.
d. Read the total sales amount.
e. Calculate the commission by multiplying the total sales amount with the commission rate.
f. Display the name of the staff member and their commission amount.
g. Increment the counter variable.
6. End the loop.
7. Display the total number of staff members processed.

Here's how you can implement this algorithm in a programming language of your choice using the provided pseudo-code. Keep in mind that the syntax may vary depending on the programming language:

```python
# Initialize variables
commission_rate = 0.05
counter = 0

# Read the number of staff members
num_staff_members = int(input("Enter the number of staff members: "))

# Process staff members
while counter < num_staff_members:
# Prompt the user for input
name = input("Enter the name of sales staff: ")
sales_amount = float(input("Enter the total sales amount for the month: "))

# Calculate commission
commission = sales_amount * commission_rate

# Display the name and commission
print("Name:", name)
print("Commission:", commission)

# Increment the counter
counter += 1

# Display the total number of staff members processed
print("Total staff members processed:", counter)
```

This algorithm will prompt the user to enter the number of staff members, and then accept the names and sales amounts for each staff member. It will calculate and display the commission for each staff member, and finally, it will display the total number of staff members processed.