Need help for assignment

Yo
Last edited on
so what code do you have so far?
what are the specific problems your having?
i have no idea to start the program. i m good in codes. but i need some help to do it. its kinda riddle ?
I'll split answer to few pieces:
You are required to write a program in C++ that calculates the addition of vectors (minimum of five vectors) using the method Cartesian coordinate system.

2D or 3D? (using x-axis, y-axis and z-axis (aka.i,j and k)). This means actually your normal dimensions ;)
Use classes if you are allowed to use them in this.

The value of magnitude and the angle of direction given by the user. The program will display:
1. components of each vector
2. total force magnitude and direction.

You know how to make this using std::cin. (and some math using cmath library)


The program should provide the following features:
1. All the forces are given by the user interactively.

-meaning # of forces to be admitted? new/delete-operators
-if not: array?

2. The components of each force will be displayed in table form.

cmath library and std::cout.

Remember cmath library uses RADIANS as angle, not degrees.


We will not give full code here :)
Last edited on
i didnt get wht you say. im just new user of c++. can you please explain it further?

can you give me a proper solution ?
errago did give you a solution, just look at the information piece by piece instead of looking at it all at once.
2D or 3D? (using x-axis, y-axis and z-axis (aka.i,j and k)). This means actually your normal dimensions ;)??????????????
Last edited on
is this the method of Cartesian coordinate system of vector of five components ?
Last edited on
Topic archived. No new replies allowed.