so this program works, but my professor wanted my function to have paramters sale amount and sales commission, not sure what he means by that, as we are trying t find the sales commission
Yes, the program works. I am also not sure what he means. Maybe he wants you to use "meaningful names" double commCalc(double s, int c)
This can be improved in two ways
1. Give the function a name that tells what it does
2. Give the input parameters names that convey meaning. What does s stand for? sales, salary, sandBags?
Maybe he wants you to do (just a guess)
1 2 3
double commCalc(double saleAmount, int saleCommission);
// or
double calculateCommission(double saleAmount, int saleCommission);