<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">While you got it working, you are over complicating the process.<br><br>First you defined that variables, that's fine<br><br>(define tax-rate .15)<br>(define pay-rate 12)<br><br>The function net-pay only needs one input, the amount of hours you are working.<br><br>With the defined pay-rate and tax-rate, how would you determine net-pay of 10 hours by hand?<br><br>I hope you would multiply pay-rate by hours to produce gross pay<br><br>(12 * 10)=120, so 120 is the gross pay.<br><br>Now how would you find the net pay of the gross pay? You could either subtract .15 from 1, or subtract gross pay*.15 from gross pay.<br><br>120*.85= 102, or 120-120*.15 =102.<br><br>While auxiliary functions are a great thing to understand you don't quite need them for such a small function, you can even define the function with out defining variables.<br><br>The solution you came up
with just seems confusing when I look at it.<br><br>You defined gross-pay as<br>(define(gross-pay h)<br>(* h pay-rate))<br><br>You are using gross in net-pay as an argument which isn't really something you need to do right now.<br><br>Everytime you want to check a number you need to type (netpay(gross x)taxrate)<br><br>why not just develop it so you can type (net-pay x) and have it produce the net-pay?<br><br>Try doing it without using an auxiliary function and the ONLY argument as h<br><br>(define(netpay h)<br>(tax-rate payrate h..)<br><br> Those should be the only things used in your program.<br></td></tr></table><br>