Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The following table shows the commission rate that will be paid to salesman according to their monthly sales. Month Sales ( RM ) Commission Rate

The following table shows the commission rate that will be paid to salesman according to their monthly sales.
Month Sales (RM)
Commission Rate (%)
Less than 10,000.00
2%
10,000.0020,000.00
3%
20,000.0130,000.00
4%
More than 30,000.00
5%
Write a complete program to calculate the commission and total salary for the salesman. The program should request a user to enter salesman name, basic salary, monthly sales and staff status either J(Junior) or S (senior). The total salary is based on their basic salary, commission and royalty (10% if junior, 20% if senior). Then, display the salesman name, basic salary, commission and total salary in two decimal places.

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

More Books

Students also viewed these Databases questions