This coding bee consists of of three problems, all chosen from level 1 and 2 of the CCC Junior competition. You have 90 minutes to complete the three problems. Challenge #1: Speed Fines are Not Fine! (CCC/2012/J1) Original problem description on CEMC website. Many communities now have “radar” signs that tell drivers what their speed is,Continue reading “Coding Bee #1”

# Category Archives: programming-problems

## Sumac Sequences (CCC/2011/J3)

Challenge A sumac sequence is made by beginning with two integer terms and , and then producing more terms according to the following rules (starting with the third term): If a term is produced that is greater than the term before it, the sequence terminates (no new terms are produced). For example, the starting terms 120 and 71 produce theContinue reading “Sumac Sequences (CCC/2011/J3)”

## Rotating Letters (CCC/2013/J2)

Challenge An artist wants to construct a sign whose letters will rotate freely in the breeze. In order to do this, she must only use letters that are not changed by rotation of 180 degrees: I, O, S, H, Z, X, and N. Define a function, Rotated, that reads a word and determines whether it can beContinue reading “Rotating Letters (CCC/2013/J2)”

## What kind of triangle? (CCC/2014/J1)

Challenge Define a function, TriangleType, that decides if a triangle is equilateral, isosceles, or scalene (or not a triangle at all). Your input will be three integers, each representing the measure of one interior angle. Your output should be “equilateral”, “isosceles”, “scalene”, or “not even a triangle”. Original problem description on CEMC website. Sample Output: Background InformationContinue reading “What kind of triangle? (CCC/2014/J1)”