Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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?
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started