Project #1: A Gentle Introduction to Impcore

Submit: Turn in your hw1.imp source file using the turnin command on morbius.mscsnet.mu.edu or one of the other Systems Lab machines.

Work is to be completed individually. Be certain to include your name in the file. You may submit multiple times, but only the last turnin will be kept. The automatic submission system will not accept work after the deadline. (See turnin instructional video HERE. Note that the video is for a different course number, and that Morbius's domain name has changed since the video was made: morbius.mscs.mu.edu -> morbius.mscsnet.mu.edu)

Include a comment block at the very top of each file that contains the following:

  ; COSC 3410 - Project 1
  ; Explain briefly the functionality of the program.
  ; @author [your name]
  ; Instructor [your instructor]
  ; TA-BOT:MAILTO [your email address]

Your source file should be in the Impcore language, presented in chapter 1 of our textbook.

Source code for the base interpreters is available on the Systems Lab machines at ~brylow/cosc3410/Projects/build-prove-compare-student-code.tgz. The code for this base-level Impcore interpreter is in subdirectory build-prove-compare-student-code/bare/impcore. Run the make command in that directory to build the interpreter. It can then be executed with ./impcore.

A pre-built Impcore binary is also available at ~brylow/cosc3410/Projects/impcore.

Q1 - Sigma

Chapter 1.10.2, exercise 2.

Q2 - Exponential and logarithm

Chapter 1.10.2, exercise 3.

Q3 - Prime-number functions

Chapter 1.10.2, exercise 5.

Q4 - Binomial Coefficients

Chapter 1.10.3, exercise 6.

Q5 - Decimal-to-Binary Conversion

Chapter 1.10.4, exercise 8.


[back]

[Revised 2023 Aug 28 13:26 DWB]