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 eg 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 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
run
Enter st vector floats:
Coordinates cannot both be zero.
Enter st vector floats:
Coordinates cannot both be zero.
Enter st vector floats:
Enter nd vector floats:
Coordinates cannot both be zero.
Enter nd vector floats:
Coordinates cannot both be zero.
Enter nd vector floats:
First vector: has length
Second vector: has length
Resultant vector: has length
Angle between vectors and degrees.
The vectors are NOT ORTHOGONAL.
Test
run
Enter st vector floats:
Enter nd vector floats:
Coordinates cannot both be zero.
Enter nd vector floats:
First vector: has length
Second vector: has length
Resultant vector: has length
Angle between vectors and degrees.
The vectors are NOT ORTHOGONAL.
Test
run
Enter st vector floats:
Enter nd vector floats:
First vector: has length
Second vector: has length
Resultant vector: has length
Angle between vectors and degrees.
The vectors are ORTHONORMAL.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
