Lab 8
9.3

Lab 8🔗

Course Homepage

Followup to Lab 7. It’s short!

Write a program in DRMG4 that includes the definitions of ‘add‘ and ‘one‘ and ‘two‘ (as defined in Lab 7), then uses ‘add‘ and ‘two‘ and ‘one‘ to produce ‘three‘, then applies it to a function that doubles a number, and checks that the result is correct.

In order to write a program in the DRMG4 language before you’ve implemented it, use the "sim" language defined in this module.

Put your program in the my-mod1 module.

When you’re done, make a note of this program; it will make a wonderful test case for your Assignment 4!