Question: In C + + Programming Instructions IMPORTANT: Study the Powerpoint slides and assigned readings BEFORE starting this assignment. Besides program behavior ( compiles and passes

In C++
Programming Instructions
IMPORTANT: Study the Powerpoint slides and assigned readings BEFORE starting this assignment.
Besides program behavior (compiles and passes tests), effective commenting, tabbing, code quality, and choice of statements (e.g., use of while loop vs for loop) will affect your grade. The style of your program should follow the style of the sample programs in the lecture notes. Your program should have the file name, your name, creation dates and a brief description of the program at the top of the program (see TASK 2 below). In addition, read the document on Commenting found under Modules Carmen.
DO NOT delete nor change the code already given to you in the code template unless instructed to do so at particular locations. You will add your code to this template to formulate your solution. Study the tests below to help you understand program behavior. Use the following tests and your own tests to run against your solution in Develop mode. These are the same tests that your solution will be executed against when you submit your work in Submit mode. User input is in bold:
Sample Runs (Program Behavior)
User input is in bold:
Test 1
> run
Enter 1st vector (2 floats): 00
Coordinates cannot both be zero.
Enter 1st vector (2 floats): 00
Coordinates cannot both be zero.
Enter 1st vector (2 floats): 10
Enter 2nd vector (2 floats): 00
Coordinates cannot both be zero.
Enter 2nd vector (2 floats): 00
Coordinates cannot both be zero.
Enter 2nd vector (2 floats): 10
First vector: (1,0) has length 1
Second vector: (1,0) has length 1
Resultant vector: (2,0) has length 2
Angle between vectors (1,0) and (1,0)=0 degrees.
The vectors are NOT ORTHOGONAL.
Test 2
> run
Enter 1st vector (2 floats): 10
Enter 2nd vector (2 floats): 00
Coordinates cannot both be zero.
Enter 2nd vector (2 floats): 11
First vector: (1,0) has length 1
Second vector: (1,1) has length 1.41421
Resultant vector: (2,1) has length 2.23607
Angle between vectors (1,0) and (1,1)=45 degrees.
The vectors are NOT ORTHOGONAL.
Test 3
> run
Enter 1st vector (2 floats): 01
Enter 2nd vector (2 floats): 10
First vector: (0,1) has length 1
Second vector: (1,0) has length 1
Resultant vector: (1,1) has length 1.41421
Angle between vectors (0,1) and (1,0)=90 degrees.
The vectors are ORTHONORMAL.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!