Answered step by step
Verified Expert Solution
Link Copied!

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 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:
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Oracle8I Building Efficient Databases

Authors: Jonathan Lewis

1st Edition

0201715848, 978-0201715842

More Books

Students also viewed these Databases questions

Question

Why has WP/WIP/SWP become such an important part of HR activity?

Answered: 1 week ago

Question

Answered: 1 week ago

Answered: 1 week ago