Question: Write a program to calculate how much a salesperson earns when his / her commission and basic salary are combined. If a salesperson sells above

Write a program to calculate how much a salesperson earns when his/her commission and basic salary
are combined. If a salesperson sells above R3000 he/she earns 10% commission, otherwise, he/she
earns no commission. The report prints each salesperson's number, gender, department number (1 or 2),
sales amount, basic salary and total salary.
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 is
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 either M or F.
At the end of the report, print how many women work in each department.
Processing continues until a salesperson number of 0 is entered.
For example:
 Write a program to calculate how much a salesperson earns when

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!