Chauncy Assignment Format:
Specifying an assignment is easy-- for any given assignment you probably already have the key elements: the instructions, a sample solution, and one or two (or more) test sets.

Here is an example of a Chauncy programming assignment specfication, for an assignment that I often give early on in my C-based CS1 class:

Instructions: Write a program that reads a single positive integer from standard input. Let's call this value N. The program prints (to standard output) the first N prime numbers. So, if the input to the program is 5, the program prints out 2 3 5 7 11.

Solution:
	#include <stdio.h>
	...
	int main() {
		...
	}
Test Set 1:
       stdin: 7
       stdout: 2 3 5 7 11 13 17
Test Set 2:
       stdin: 18
       stdout: 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61

Output Matching Options: Ignore white space

Here's a simpler "Day 1" assignment:

Instructions: Write a program that reads two integers and prints their sum. Do not print anything other than the sum. So, if the input to the program is 5 13, the program prints out 18.

Solution:
	#include <stdio.h>
	...
	int main() {
		...
	}
Test Set 1:
       stdin: 57 92
       stdout: 149
Output Matching Options: Ignore white space





Powered By Turing's Craft, Inc. Copyright 2006