Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 hisher commission and basic salary
are combined. If a salesperson sells above R heshe earns commission, otherwise, heshe
earns no commission. The report prints each salesperson's number, gender, department number or
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 is entered, a summary report is
printed.
If a salesperson number of is entered, the user must not be prompted for other information.
The gender of the salesperson can be either or
At the end of the report, print how many women work in each department.
Processing continues until a salesperson number of is entered.
For example:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started