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.

1 answer

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.