Vector Addition Project: 1.) Ask the user for number of vectors to add (up to 5 max). You must use error trapping! 2.) Read in magnitude and direction (in degrees) for each vector. You must use error...

assignment is attached


Vector Addition Project: 1.) Ask the user for number of vectors to add (up to 5 max). You must use error trapping! 2.) Read in magnitude and direction (in degrees) for each vector. You must use error trapping. 3.) Calculate the final magnitude / direction and output to a well-formatted table: 4.) You must use a UDF! Get the x / y components: X = Magnitude * cos(Direction) Y = Magnitude * sin(Direction) Where direction is in degrees and needs to be converted to polar (pi*direction/180) Resultant = SQRT(SQR(Sum of X Comp.) + SQR(Sum of Y Comp.)) Get the Angle: Angle = arctan(Sum of Y Comp. / Sum of X Comp.) The angle needs to be put back into degrees. Watch your Quadrants!
Feb 25, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here