redundant programming = confused student?
Feb. 9th, 2006 04:34 am
Polymorphous Light Eruption.Put down the sun you
fool!
Which disease are you?
brought to you by Quizilla
You know what I hate? Just KNOWING that you're totally screwing something up:
;;; Step 3
(define base 11)
(define prime 99991)
; Fill your secret key in here
(define my-secret 1985)
; Procedure to compute public key from secret key
; Should return: (base ^ secret) mod prime
; Hint: Use the expmod function defined above.
(define (make-public base secret prime)
(expmod base my-secret prime)
)
(define my-public (make-public base secret prime))
They can't possibly want us to do something so... Redundant.
[EDIT: Yay! I finished lab two successfully! That bit of redundancy might get me docked on style, but the program works, so... But I just realized... I need to comment this thing... Ugh.]