related on the first question...which is getting the commission,,,
let me correct it..if you run this code the sample output will be like below;
the problem is I dont know which one will be first to make a code.
the output will be like this;
sample output
monthly sale=15250
commission=610
next output ;
monthly sale=-5
commission=invalid output
last output;
monthly sale=45280
commision=170