CS 12 Programming Assignments
CS 12 Homepage
Here is the list of assignments for this quarter. If you are attending labs as expected, you need to accumulate 100 points from programming assignments to get full credit in the course.
-
Arithmetic - 15 points - Due 7/31 - Implement addition and multiplication operations for arbitrarily large integers.
-
Encryption - 20 points - Due 8/3 - Implement the Caesar Cipher, a primitive code used by Roman Generals.
-
Random Sentences - 15 points - Due 8/7 - Create a program that puts together random sentences according to some rules you define.
-
Recursion Exercises - 15 points - Due 8/10 - A series of small functions using recursion.
-
Mastermind - 20 points - Due 8/14 - Implement the classic game Mastermind
-
Calculator - 20 points - Due 8/14 - Implement a Reverse Polish Notation calculator using a simple stack.
-
Towers of Hanoi - 15 points - Due 8/17 - Write a program that outputs solutions to the Towers of Hanoi puzzle.
-
Mergesort - 15 points - Due 8/21 - Write a program that reads in a list of numbers and sorts them using a fast sorting algorithm.
-
Shapes - 20 points - Due 8/21 - Write a set of classes that implement some basic operations for representing shapes of different types (circle, rectangle, etc.) Good for practice with virtual and defining classes.
-
Fractal - 15 points - Due 8/24 - Write a program that prints out a fractal of a size given by the user.
-
Fractions - 20 points - Due 8/24 - Write a class that implements a Fraction type. Good for practice with operator overloading.
-
Fibonacci Table - 15 points - Due Wednesday 8/27 - Write a program that uses an advanced recursion technique to quickly calculate and store values in the Fibonacci Sequence.
-
Linked List - 20 points - Due Friday 8/29 Write a simple data structure to store a list of numbers elegantly and perform some operations on that list.
© 2003 UC Riverside Department of Computer Science & Engineering. All rights reserved.