In the first question shes has :
Enter sales price (-1 to stop): 8000
Commission is $160.00
Enter sales price (-1 to stop): 15000
Commission is $275.00
Enter sales price (-1 to stop): 30000
Commission is $450.00
Enter sales price (-1 to stop): -1
Total sales commission = $885.00
but the arithmetic is wrong. She has us do $350 + 1% for a sale over 20000.
but if you do 30000 * .01 that is 300 + 350 = 650 not 450.
my output is:
Enter sales price (-1 to stop): 8000
Commission is $160.00
Enter sales price (-1 to stop): 15000
Commission is $425.00
Enter sales price (-1 to stop): 30000
Commission is $650.00
Enter sales price (-1 to stop): -1
Total sales Commission = $1235.00
this also doesnt work for the computation of 15000.
am i right or wrong?