Commission is not equals to zero


hile (salesPerson != -1) // the code will continue running until the user input -1

cin >> product >> value; // input the car model number and value

if (salesPerson == 1) // the code will run if the staff ID is 1

if (product>=1&&product<=6) // this limits the model no of the car since the car only has six model. so this makes the program reject any value less than 1 or more than 6

{
commission1=list(product,value); //runs from the function 'list(int a, double b) having product as int a, and value as double b

if (commission1==0)
carsales1=carsales1+0; //if the commission is equals to zero, meaning there is no sale being done there fore count car will not add +1
else
{
carsales1=carsales1+1; //if commission is not equals to zero, than a sale is being made and the program will add +1 to the count car
totcom1=totcom1+commission1; //this will sums up the total commission made by the user
value1=value1+value; ; //this will sums up all of the sales being done by user1
sales [salesPerson][product] += value1; //this code will take value1 to the array for the table
} // end function else
} // end function if

Request for Solution File

Ask an Expert for Answer!!
Term Paper: Commission is not equals to zero
Reference No:- TGS074125

Expected delivery within 24 Hours