Data Structures - C++
Homework Assignments 2009
-
Gladiator Program without inheritance.
-
Shapes program with inheritance. Creat a Class called Shape. Inherit from it to three other classes.
Triangle, Circle, and Square. Make a pure virtual function in Shape called getPerimeter. Implement it in each child
class. Each shape should have whatever private data is relevant for running the getPerimeter function.
Create an array of 100 shape pointers. Allow the user to create any number of shapes of different types (up to 100).
Write a searchForPerimeter function to find all the shapes that have a certain perimeter. The function should
print out the type of shape found and its index number in the array. You will need to store the class type in the class.
- linked list
- fifo /lifo.
- sorted linked list
- Binary Tree with add, remove, print in order.
- Write a binary tree in an array implementation. Add. Print in order.
- Operator overloading for mixed fraction.
- More Operator overing with mixed fraction.
- implement a heap with an Object Oriented array implementation. Up heap, downheap, push, pop.
- use a heap to effect a heap sort on an array.
-
Write to a file records. Allow for adding and modifying existing records.
Read from file as well.
-
Project : Restaurant Menu with files.
- Recursive quick sort.
- Add exception handling to Mixed fraction class.