Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

COP 2334 C++ Programming Homework Assignment #3 Selection Due at the beginning of class on 2/25/2020 Write a C++ program to calculate sales commission. Use

COP 2334 C++ Programming
Homework Assignment #3 Selection
Due at the beginning of class on 2/25/2020
Write a C++ program to calculate sales commission. Use an if-else chain for your selection. The program should accept an integer value representing a sales amount and calculate the commission based on the following chart:
SalesCommission Rate
1,000,000 or more10%
750,000 999,999 8%
500,000 749,999 6%
250,000 499,999 5%
< 250,000 4%
Your output should follow this format exactly:
Sales Commission program by
****************************************
Enter the Sales amount -
You will receive commission on your sales of
Your rate of commission was
Good Luck on your sales next month!
Here is a sample run:
Sales Commission program by Mr. R.
****************************************
Enter the Sales amount - 600000
You will receive 36000 commission on your sales of 600000
Your rate of commission was 6%
Good Luck on your sales next month!
Please note that there are two blank lines in the output before the You will. and the Good Luck. lines.
Please note that output does not include $ (dollar sign) or commas!
Include at least one comment in your source program!!!
Run your program four times with the following values: 225,000 1,250,000 500,000 and a fourth value of your choice (remember do NOT type in the comma when inputting numbers!!!).
Turn in a listing of your source program and your output from the 4 runs.
Good Luck!!!

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

More Books

Students also viewed these Databases questions