two-dimensional array

Hey I am trying to figure out how to put in a 10% bonus rate to each of the salesperson's amount and to put in two decimal places with it.

#include <iostream>
using namespace std;

int main()
{
//declare array and variables
int salesAmount[10][2] = {{1, 7900}, {2, 9500}, {3, 3150}, {4, 1530}, {5, 3000}, {6, 21300}, {7, 2450},
{8, 14200}, {9, 14400}, {10, 2900}};
int salesPerson = 0;
int rowSub = 0;

//enter the number ordered
cout << "Sales person number: ";
cin >> salesPerson;

while (salesPerson > 0 && salesPerson <= 99999)
{
//search array
rowSub = 0;
while (rowSub < 3 &&
salesPerson > salesAmount[rowSub][0])
rowSub += 1;
//end while

//display shipping charge
cout << "Sales amount: "
<<salesPerson << " is $"
<<salesAmount[rowSub][1] << endl << endl;

//enter the number ordered
cout << "Sales person number: ";
cin >> salesPerson;

} //end while

system("pause");
return 0;
} //end of main function
cout << "increase 10%";
salesperson.raise(0.10);


have "raise" as a variable
I understand what you are saying but I am not sure where to put it?
Topic archived. No new replies allowed.