CSC104H1 Lecture 3: quiz

87 views2 pages

Document Summary

Recursion (define (t n) (cond [(= n 0) "|"] [else (string-append "}" (t (- n 1)) (t (- n 1)) ; show the result values of the following expressions: (t 0) (t 1) (t 2) (t 3) (define (t n) (cond [(= n 0) "|"] ; show the result values of the following expressions: (t 0) (t 1) (t 2) (t 3) ; here are some powers of 2: (list 64 32 16 8 4 2 1) ; calculate the number represented by each list of bits. ; the appropriate power of 2 and adding the result. Show your work multiplying by (list 1 1 0 0 1 1 0) (list 1 0 1 1 0 0 1) ; for each decimal (regular old base-10) number below, show. ; how to convert it to binary (base 2), working from the. ; add the two binary numbers below, showing all steps.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions