• 100% Satisfaction Guarantee
Raj, Engineer
Category: Homework
Satisfied Customers: 1290
Experience:  4 + Experiance in IT Industry
16752232
Raj is online now

# Write a C++ program that prompts the user to enter the rectangular

Write a C++ program that prompts the user to enter the rectangular components (Fx , Fy , Fz) of two concurrent forces, and displays the magnitude as well as the space angles (θx , θy , θz) of the resultant force. Hint: Include ‘cmath’ library and use ‘acos()’ and ‘sqrt()’ to compute cosine-inverse and square-root, respectively.
Hi There,

I will be helping you with the code.
Can you please provide me the formula to be used for the computation?

Thank you
Customer: replied 4 years ago.
Frx = F1x + F2x
Fry = F1y + F2y
Frz = F1z + F2z

Calculate the magnitude

Then calculate angle for all components
Will it be possible for you to provide the remaining formula for calculations?
Customer: replied 4 years ago.
Magnitude = sqrt rx^2 + ry^2 + rz^2

Angle 1= rx/ mag

Angle 2= ry/ mag

Angle 3= rz/ mag
Ok Got it.
I am working on the code and will post the solution in next 1 hrs.
Will you be staying Online?
Customer: replied 4 years ago.
Ya I will be staying online, whenever you message me it come through my email. Thanks
You Are Welcome.
Now Only Angle Part is left on which I am working