Skip to content
Snippets Groups Projects
Forked from make grade / make grade
This fork has diverged from the upstream repository.

Example programming assignment

This is an example assignment illustrating autograder functionality.

How to run the autograder

First, do NOT assume that the autograder should be the primary way you run your code! You should run your code manually by executing it directly at the terminal, so that you understand how it is executed, and how input and output are handled. When debugging, you should read the tests themselves, and run the tests (or their commands) manually!

Type make help to see an overview of the autograder.

Type make to run the whole grading pipeline. If you are programming correctly, this should NOT be your go-to command...

See this link for more details on the autograder itself:

https://git.mst.edu/make-grade/make-grade

Problem description

Write two functions and one main driver:

nat_to_bin: Converts a natural number to a binary string.

bin_to_nat: Converts a binary string to a natural number.

main uses IO, and sequentially applies those functions.

Upload three files, examples of what student should generate copy into uploads/:

ls uploads/
# gpg2_key.asc
# id_rsa.pub
# ssh-key0.png

file uploads/gpg2_key.asc
# gpg2_key.asc: PGP public key block Public-Key (old)

file uploads/id_rsa.pub
# id_rsa.pub: OpenSSH RSA public key

file uploads/ssh-key0.png
# ssh-key0.png: PNG image data, 1608 x 984, 8-bit/color RGB, non-interlaced