#include <iostream>
#include <cmath>
usingnamespace std;
int main()
{
//declare variables
double sales = 0.0;
double commission = 0.0;
double rate =.05;
//set up do while loop
do {
cout << "Enter the sales amount: $";
cin >> sales;
//calculation
commission = sales * rate;
//set increment to increase by one each time
rate+.05;
cout << rate * 100 << "% commission: $" << commission << endl;
} while (rate <= .25);//end while at last bracket
system ("pause");
return 0;
}//end main
The program should look like this at the end
Enter the sales: 25000
10% commission: $2500
15% commission: $3750
20% commission: $5000
25% commission: $6250
Press any key to continue..._
and yes those are the actual rates i need to calculate and they are in increments of 5%