Forexampleonevehiclemightbeasilvermercedes

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview:  =>error.4isnotamemberofthelist h)(rest(rest(restmy ­list)))  i)(cons5(firstmy ­list))     =>error:remember,thedefinitionofalististhatalist a(firstmy ­list)and(restmy ­list).(rest_mylist)mustbealist. j)(first(restmy ­list))   h)(empty?(restmy ­list))  =>false    2)Trace(*(+(min23)( ­65))5) =>(*(+2( ­65))5) =>(*(+21)5) =>(*35) =>15  3)Acompanywishestorepresentinformationaboutvehiclesthathavebeentowed:model, colour,licenseplate,andafinetobepaid.Forexample,onevehiclemightbeasilverMercedes withlicenceplateTRYO456forwhich$500.50isowed. a)giveastructuredefinitionforthevehicle.Chooseappropriatefieldnames (define ­structvehicle(modelcolourplatefine)) b)giveadatadefinitionforthestructurevehicle.Chooseappropriatetypesforeachfield   ;;a...
View Full Document

This note was uploaded on 01/19/2014 for the course CS 115 taught by Professor Troyvasiga during the Fall '13 term at University of Waterloo, Waterloo.

Ask a homework question - tutors are online