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: vehicleisastructure(make ­vehiclemcpf)where ;;misastring ;;cissymbol ;;pisastringand ;;fisanum  c)defineaconstantmy ­vehicleoftypevehiclecorrespondingtotheexamplegivenabove   (definemy ­vehicle(make ­            4)Using (define ­structemployee(nameIDsalary))  a)Listthefunctionsthatareautomaticallycreated make ­employee employee? employee ­name employee ­ID employee ­salary  b)giveatemplateforafunctionthatconsumesanemployee (define(new ­employeeemployee)  ...(employee ­nameemployee)...  ...(employee ­IDemployee)...  ...(employee ­salaryemployee)...)  c)Givearecursivedatadefinitionforemployee ­list,whichisalistofemployee. ;;anemployee ­listiseither ;;emptyor ;;(consfr)wherefisanemployeeandrisalistofemployee   d)createafunctionsalary ­sum...
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