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

Lab 5 Solution folder. Rename the copy Use Windows to make a copy of the Com the

ID: 3588691 • Letter: L

Question

Lab 5 Solution folder. Rename the copy Use Windows to make a copy of the Com the following changes 1 Add commission ID BB to the list of commission IDs. Any salesperson wth a commission ID of BB gets a $10,000 bonus if his/her sales are greater than $40,000 2 Base the commissions on a sliding scale a sales $50,000 or more earn a 20% commission b sales between $25,000 and S50.000 earn a 15% commission c sales less than S25.000 earn a 10% commission Note For salespersons earning both a commission and a bonus, calculate the commission first, then add the bonus Zip and upload your Solution folder

Explanation / Answer

#include<iostream>

using namespace std;

int main(){

double sales,sal=0;

cout<<"Enter sales of a sales person : ";

cin>>sales;

if(sales <= 25000){

sal = sales + (sales*0.1);

cout<<"comission is "<<(sales*0.1)<<" bonus is "<<0;

}else if(sales > 25000 && sales <50000){

if(sales > 40000){

sal = sales+(sales*0.15)+10000;

cout<<"comission is "<<(sales*0.15)<<" bonus is "<<10000;

}

else{

sal = sales+(sales*0.15);

cout<<"comission is "<<(sales*0.15)<<" bonus is "<<0;

}

}else if(sales>=50000){

sal = sales+(sales*0.2)+10000;

cout<<"comission is "<<(sales*0.2)<<" bonus is "<<10000;

}

return 0;

}