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).

 

    1. choose a box or a circle object to work with
    2. have the object run across the screen (like class3.vbp in your book does)
    3. draw the object with a certain size and location and fill color

 

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:

 

 

  1. You must center all forms on the screen using a common procedure.
  2.  

  3. You must have an "About" dialog that is modal and gives a brief description of who you are and what your programs do. (Place this under the Help menu item where it usually goes.)
  4.  

  5. You need to provide a way to exit the programs gracefully.
  6.  

  7. You must use proper naming conventions for forms and controls (see appendix B).
  8.  

  9. You must create an executable file (.EXE) and use the Setup Wizard to submit the assignments on disk(s) to me.

 

Points will be deducted for the following:

 

  1. failing to meet the above specifications and requirements
  2.  

  3. failing to meet the proper program submission/documentation requirements