Question: I need to add two list using scheme. I have written the code but for the last check it doesn't output the desire number which

I need to add two list using scheme. I have written the code but for the last check it doesn't output the desire number which should be the sum of 3 + 6 instead I get void. Can someone help me? I need to add two list using scheme. I have written the

Untitled - DrRacket* File Edit View Language Racket Insert Scripts Tabs Help Untitled (define ...)V #lang racket Check Syntax p Deb | Macro Stepper #Pi Run Stop (define (vecadd 11 12) (cond (null? 11) null] [ (pa ir ? 11) (cons (+ (car 11) (car 2)) (vecadd (cdr 11) (cd r 12)))])) (display (vecadd '' (newline) (display (vecadd(1) '(2))) (newline) (display (vecadd(1 23)'(45 6))) (newline) (display (vecadd(1 . 3)'(4 . 6) (newline) Welcome to DrRacket, version 7.2 [3m] Language: racket, with debugging, memory limit: 128 MB. (5 (5 7 9) # )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!