Ask Term Paper Expert

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

Term Paper, Writing

  • Category:- Term Paper
  • Reference No.:- M974125

Have any Question?


Related Questions in Term Paper

Special topics in criminal justicemanagement of critical

Special Topics in Criminal Justice Management of Critical Incidents Operations and Personnel Need to demonstrate the acquired essential skills and knowledge in the subject matter. Term Paper

Economic physical and environmental impacts of bhopal

Economic, physical and environmental impacts of Bhopal disaster

Questionthe outline will consist of 4-5 pagesthe title page

Question: The Outline will consist of 4-5 pages. The Title Page and Reference Page are not included in the page count. The paper/outline describes your final research project. Each major section within your final project ...

Need to demonstrate the acquired essential skills and

Need to demonstrate the acquired essential skills and knowledge in the subject matter. Subject - Criminal Justice

Need to demonstrate the acquired essential skills and

Need to demonstrate the acquired essential skills and knowledge in the subject matter - Criminal Justice

Need to demonstrate the acquired essential skills and

Need to demonstrate the acquired essential skills and knowledge in the subject matter - Criminal Justice

Literature review on the topictopic - the convergence of

Literature Review on the topic Topic - The convergence of transportation congestion and transportation security at a U.S. seaport. In 2009 the American Recovery and Investment Act was introduced to fund for the surface t ...

You need to write an essay for critical reason class in apa

You need to write an essay for critical reason class in APA format. The claim that you want to do is: Abortion

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As