Rewrite the following pseudocode so the discount decisions and <br />calculations are in a module.<br /><br />start<br /> read customerRecord<br /> if quantityOrdered > 100 then<br /> discount = .20<br /> else<br /> if quantityOrdered > 12 then<br /> discount = .10<br /> endif<br /> endif<br /> total = priceEach * quantityOrdered<br /> total = total - discount * total<br /> print total<br /> stop<br /><br />this is what I came up with<br /><br />start<br /> read customerRecord ()<br /> if quantityOrdered > 100 then<br /> discount =.20 ()<br /> else<br /> if quantityOrdered > 12 then<br /> discount = .10 ()<br /> end if<br /> end if<br /> total = priceEach * quantityOrdered()<br /> total = total - discount * total ()<br /> print total()<br />stop<br /><br />I came up with this because from what I read a module is <br />just breaking down problems into smaller units. So that<br />the programmer can understand what the end results should<br />be.<br />If I am wrong please let me know.
</div>
</div>