User Tools

Site Tools


cs330_f2016:racketbasics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
cs330_f2016:racketbasics [2016/08/29 22:04]
morse [Deliverables:]
cs330_f2016:racketbasics [2017/09/04 18:13]
wingated [Deliverables:]
Line 24: Line 24:
 (define (sum-coins pennies nickels dimes quarters) ...) (define (sum-coins pennies nickels dimes quarters) ...)
 </​code>​ </​code>​
-where ''​pennies'',​ ''​nickels'',​ ''​dimes'',​ and ''​quarters''​ are all non-negative numbers and the value returned is the total value of the coins.+where ''​pennies'',​ ''​nickels'',​ ''​dimes'',​ and ''​quarters''​ are all non-negative numbers and the value returned is the total value of the coins in cents.
  
 === degrees-to-radians === === degrees-to-radians ===
Line 44: Line 44:
 where ''​angle''​ is a number representing either degrees or radians, type is either '''​degrees''​ or '''​radians''​ (a symbol) indicating how ''​angle''​ is represented,​ and the value returned is the sin of ''​angle''​. where ''​angle''​ is a number representing either degrees or radians, type is either '''​degrees''​ or '''​radians''​ (a symbol) indicating how ''​angle''​ is represented,​ and the value returned is the sin of ''​angle''​.
  
-Hint: use ''​symbol=?''​ to test for symbol equality: ''​(symbol=?​ x '​degrees''​.+Hint: use ''​symbol=?''​ to test for symbol equality: ''​(symbol=?​ x '​degrees)''​.
  
 ---- ----
cs330_f2016/racketbasics.txt ยท Last modified: 2021/06/30 23:42 (external edit)