What I am having trouble navigating is the brackets.<br><br>Simply in normal math what I am trying to do is<br><br>(people * ticket price)-((number of shows * 20)+(people * cost per person))<br><br>Contrcat : total profit : attendees performance -&gt; number<br>
<br>;; Purpose to calculate total profit of a theatre per show <br><br>;;Example: (total profit 20 1) should produce $70<br><br>;;Defintion: ( define (- profit cost))<br>(* patrons 5( - (* patrons 0.5(+ (* shows 20)))))<br>
<br>(define (patrons p)<br>    ;p     a number<br>    ...<br>    )<br>    <br>(define (shows s)<br>    ;s        a number<br>    ...<br>    )<br>    <br>(define (total_profit p s)<br>    (* p 5( - (* p 0.5(+ s 20)))))<br>
    <br><br>