CS 153 Data Structures I
Programming Assignment #5
Due: 9/20/2001 - In Lab Quiz
you will receive a recorded grade on this assignment
you are to create this assignment DURING your lab time
you and your partner will work separately, each at your own
computer
This programming assignment is designed to show that you can create a minimal
project by yourself. You will be asked to
- place a Button on the Dialog Window
- place a ListBox on the Dialog Window
- Write an OnButton... function that will
- dynamically allocate an array of 10 integers
- file the array with values 50 .. 59
- perform 1 of the tasks listed below
- write the 10 values to the ListBox
- dynamically delete [] the array
Possible 'tasks' to code
- Move all of the elements up 1 moving the [last] item to position [0] (i.e.
with wrap around)
- Move all of the elements down 1 moving [0] to the [last] position (i.e.
with wrap around)
- Substract the 'next' value from the [current] one starting with [0] and
ending with the [next to last] one
- Add the [previous] value to the [current] one starting with[1] and ending
with the [last] one