Answered step by step
Verified Expert Solution
Link Copied!

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? image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Database And Knowledge Base Systems

Authors: S Krishna

1st Edition

9810206208, 978-9810206208

More Books

Students also viewed these Databases questions

Question

Why are benefi ts classifi ed?

Answered: 1 week ago