Make your own free website on Tripod.com

Click Refresh (or Reload) to run the script again

Program Flow
(pseudocode)

prompt and get employee name, employee number & quota code
determine quota 
display table title and column headers
for day = 1 to 7 
  prompt and get sales & returns
  net = sales - returns 
  if net >= quota then 
    If net >= 2*quota then 
      comm = (0.10* net) + 150 
    else 
      comm = (0.075 * net) + 100 
    endif 
  else 
    if net >= 0.5 * quota then 
      comm = (0.06 * net) + 50 
    else 
      comm = (0.03 * net) 
    endif 
  endif 
  display output 
end for

Flowchart