Carleton University
Department of Systems and Computer Engineering
SYSC 2002 - Winter 2009

Assignment 3

Imagine a body with a number of forces acting upon it. Each force is applied at some point on the body. For each force we have a force vector (“F” in the diagram below) and a vector from the origin to the point of application (“r” in the diagram below).

                         

As you should recall from ECOR 1101, we can resolve all of the forces into:

  1. a single force acting at the origin
  2. a moment about the origin
If you’ve forgotten the details, don’t worry: they’re all in file resolver.cpp, which has been supplied. The only problem is that resolver.cpp makes use of a Vector class, and, sadly, both the header and implementation files for this class have somehow been lost.

You are to produce suitable replacements. By studying resolver.cpp (which, happily, is very well commented), you should be able to work out what class Vector is all about. You can then proceed to writing the header and implementation files. Submit both of these files (i.e. Vector.h and Vector.cpp).

As this is the first time that you have submitted two files, you are strongly encouraged to view your submission to ensure that you have successfully submitted both files and that the right contents is in each. If you had both files in the same folder, it should have been nearly impossible to go wrong, but double check by selecting each file from the box in the bottom left of the view panel.

Updated: Tuesday, January 20th, 2009.