Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please Answer in C++ Write a program that finds the point of intersection and the angle between two lines in 3D as follows: 1. Greet
Please Answer in C++
Write a program that finds the point of intersection and the angle between two lines in 3D as follows: 1. Greet the user and ask her/his name. Store the name in a variable. 2. Ask and store parameters a, b, c of the first line. 3. Ask and store parameters a2, b2, C2 of the second line. 4. Show the equations of both lines by replacing the values a, b, c with the parameter values entered above. The equation of the line in 3D has the form: ax +by+c=0. 5. Calculate and show the point of intersection of lines, which is given by the formula: b1c2 6241 4102 2241 a1b2-apbi' a1b2-apb') 6. Calculate and show the cosine of the angle between the two lines, which is given by: aja2 + b1 b2 + 1C2 cos a + b +cia + b + c 7. End the program saying goodbye to the user using her/his name. 8. Write and test your code using CodeBlocks, Visual Studio, or Xcode (or similar software). 9. Add comments to every step of your code and properly format your code. See 2.24 Style guidelines and/or the file Program_Style_Guidelines.pdf in Blackboard under Web Links on the menuStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started