Wednesday, 5 December 2012

Week#7 Oct 24th Something about hardware

During this class, professor talked about hardware architecture. For a computer, a lot of thing should b known to us, which include the input, output, storage and others. However, storage part includes hard drive, compact disc and flash drive. During the class, professor introduced those knowledge little by little. Although we are using computer everyday, how much do we really know about the structure of the computer. Through the introduction of Danny, I learned the basic knowledge which I should known earlier.

What is more, I learned the changing colour function of the DrRacket, that is I can program the picture in DrRacket by following the example the professor gave us:

; swap-red-blue : image -> image
; Swap the red and blue intensities of c
(check-expect (swap-red-blue (make-color 5 10 15 20))
              (make-color 15 10 5 20))
;
(define (swap-red-blue c)
  (make-color
   (color-blue c)
   (color-green c)
   (color-red c)
   (color-alpha c)))

No comments:

Post a Comment