Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

A company need a program to compute the commission for its employees. Each emplo

ID: 3677541 • Letter: A

Question

A company need a program to compute the commission for its employees. Each employee receives a commission based on their total sales figures and the state in which they operate. Below is the table used for calculating commission. Design the program so that the company can enter as many employees’ information as needed and get each employee’s commission as well as the total commission for all employees entered. i need inputs outputs pseudocode flowchart and desk check solution the chart is below Commission Table State Total Sales Amount Commission Rate VA Less than 100,000 10% VA 100,00 – 200,000 15% VA Over 200,000 20% NC Less than 100,000 12% NC 100,00 – 200,000 17% NC Over 200,000 22%

Explanation / Answer

Please use program like below to calculate the commision of employees :

#include <iostream>

#include <iomanip>

#include <cstdlib>

#include <cmath>

using namespace std;


int main()

{


float salePrice,

commission,

pcntA = 5.0/100.0,

pcntB = 10.0/100.0,

pcntC = 15.0/100.0,

bonusB = 5000,

bonusC = 25000,

saleB,

saleC;

cout << "Commission earned in a real estate transaction. " << endl;

cout << "Less than $100,000 get 5% of Sales Price." << endl;

cout << "$100,000 to $300,000 get $5,000 + 10% of Sales Price." << endl;

cout << "More than $300,000 get $25,000 + 15% of Sales Price. " << endl;

cout << "Input Sales Price. " << endl; // Input Feet First(That is funny).

cin >> salePrice;

if (salePrice < 100000) { // commission for less than 100,000

commission = salePrice * pcntA;

}

else if (salePrice > 300000) { // commission and bonus for greater than 300,000

saleC = salePrice * pcntC;

commission = saleC + bonusC;

}

else { // commission and bonus for range 100,000 to 300,000

saleB = salePrice * pcntB;

commission = saleB + bonusB;

}

cout << commission << " is you Commission for this sale. " << endl; // Display Meters.

system ("PAUSE"); // Without the added pause the screen would not give any time to display the answer.

return 0; // End of program.

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote