Input the following:

Salesperson number
Gender (F or M)
Department number (1 or 2)
Sales amount
Basic salary
Write the pseudocode to calculate how much a salesperson earns when his/her commission and basic salary are combined. If a salesperson sells above R3 000 he/she earns 10% commission, otherwise he/she earns no commission. For each salesperson print his or her number, gender, department number, sales amount, basic salary, and total salary.

At the end of the report, print how many women work in each department. Processing continues until a salesperson number of 0 is entered.

The program must adhere to the following specifications:

The first input must be the salesperson number. If a number of 0 is entered, a summary report (showing the total number of women in each department) must be printed.
If a salesperson number of 0 is entered, the user must not be prompted for other information.
The gender of the salesperson can be one of the following: M, or F. If any other character is entered the user must be prompted for the correct gender. The program will not continue until the correct gender is entered.
The same applies to the department number.

OK. What is your question about this?

I would write the code, then go through step by step of the requirements and add those in if you forgot to do it.

To create the pseudocode to calculate the salesperson's earnings and generate the summary report, you can follow these steps:

```
Initialize variables:
total_women_department1 = 0
total_women_department2 = 0
summary_report = ""

Repeat:
Prompt and read salesperson number
If salesperson number is 0, then exit loop

Prompt and read gender
While gender is not 'M' or 'F':
Prompt and read gender

Prompt and read department number
While department number is not 1 or 2:
Prompt and read department number

Prompt and read sales amount
Prompt and read basic salary

If sales amount > 3000, then
commission = sales amount * 0.10
Else
commission = 0

total_salary = basic salary + commission

Append salesperson number, gender, department number, sales amount, basic salary, and total salary to summary_report

If gender is 'F' and department number is 1, then
Increment total_women_department1 by 1
Else if gender is 'F' and department number is 2, then
Increment total_women_department2 by 1

Print summary_report
Print total_women_department1 and total_women_department2
```

Note: Pseudocode is a high-level description of a program that is not tied to any specific programming language syntax.