Question: The Main function Write a main that performs that tasks below. A simplifying assumption is that all user inputs are valid and that all the
The Main function Write a main that performs that tasks below. A simplifying assumption is that all user inputs are valid and that all the expressions are defined 1. Your program will prompt the user for the dimension and coordinates of three vectors, say vi,2, and v. Your program will then dynamically allocate three arrays to represent the three vectors as three arrays in dimension-coordinates format using these values entered by the user. 2. Your program will then display 2, and 3. Your program will compute and display vi +2 4. Your program will compute and display (2 s).v and 5. Your program will compute and display th . V2 and Ital lui. 6. Your program will prompt the user for three 3-dimensional vectors, say le -esl U4, s, and Your program will then display these vectors. Using these vectors, your program will compute and display the remaining vector expressions 7. Your progran will compute and display . 8. Your progran will compute the unit vector of t4 t's, V1 vs. 9. Your program will compute and display vs xo) 10. Your program will compute and display (4 x 5)+(4X) 11. Finally, using the equal function, your program will determine whether or not the vectors calculated in 9 and 10 are equal. The Main function Write a main that performs that tasks below. A simplifying assumption is that all user inputs are valid and that all the expressions are defined 1. Your program will prompt the user for the dimension and coordinates of three vectors, say vi,2, and v. Your program will then dynamically allocate three arrays to represent the three vectors as three arrays in dimension-coordinates format using these values entered by the user. 2. Your program will then display 2, and 3. Your program will compute and display vi +2 4. Your program will compute and display (2 s).v and 5. Your program will compute and display th . V2 and Ital lui. 6. Your program will prompt the user for three 3-dimensional vectors, say le -esl U4, s, and Your program will then display these vectors. Using these vectors, your program will compute and display the remaining vector expressions 7. Your progran will compute and display . 8. Your progran will compute the unit vector of t4 t's, V1 vs. 9. Your program will compute and display vs xo) 10. Your program will compute and display (4 x 5)+(4X) 11. Finally, using the equal function, your program will determine whether or not the vectors calculated in 9 and 10 are equal
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
