I was given a problem and for the life of me cannot figure it out. We didn't go over it enough for me to truly "get" it. Maybe someone can help?
Write a C++ program to determine the gross pay for a car salesman based on his fixed monthly salary, the number of cars sold, and the total value of the cars sold. In addition to the fixed monthly salary, each salesman received $50 for each car he sells plus 15% of the value of the car he sells.
So basically you must add the salary to 50xthe number of cars sold if any, and add the sum to 15% of the value of eafh car sold.
Say, i have two cars, hummer hx-$30 and mustang gt-$60 with my monthly salary as $20
so now i sold both of the cars in one month so the total/gross money will be 20(salary)+2(50)+((15/100)30)+((15/100)60).