Answered step by step
Verified Expert Solution
Link Copied!

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++ image text in transcribed

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 menu

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago