CIS 294 Homework Five Assigned November 6, 1997
As stated on the syllabus, all of the programming assignments combined are worth a total of 50% of your final grade. This assignment will be worth 35 points, or 23.3% of the 50% for all the assignments. This assignment is to be done individually.
Due: December 4, 1997
User specifications:
Part A (working with classes):
Do the programming exercises (#1 and #2) on page 709 of your text which deal with the box class example (starting on page 680 and ending on page 692). Also, add functionality to allow the user to draw a circle with the exact same type of functionality as the box example (including exercises #1 and #2). And, of course, you must use classes for the circle in the same way as they are used for the box. As an added feature, allow the user to fill in the box and the circle with a color of their choice. Design the form however you like, but you will probably need several command buttons and other controls (perhaps the Color common dialog box for the fill color). In general, the user should be able to do the following with both a box and a circle (not at the same time, but in the same program).
Note: for the code on page 689, change the count from 500 to 5000 and then change the code for Box.X = Box.X + 10 to Box.X = Box.X + 1. (or use some other appropriate numbers for these).
Part B (working with OLE):
Create a simple interface which provides the user with the following options:
Link to an existing file (let the user find the file with an Open dialog)
Work with a new embedded Excel worksheet
Work with a new embedded Word document
Program requirements:
Points will be deducted for the following: