subject

1. Create a Python program that does the following from inputting vectors v and w. Use functions in the process.
a. The program should determine if the two vectors have the same dimension. If it does, the program will proceed. Otherwise, the program will ask the user to correct the mistake.
b. The program should output (v and wl.
c. The program should output the unit vectors in the same direction as v and w.
d. If the dimensions match, the program will output v +w.
e. If the dimensions match, the program will output v - w.
f. If the dimensions match, the program will output 2v.
g. If the dimensions match, the program will output 3w.
h. If the dimensions match, the program will output 3v Γ’β‚¬β€œ 2w.
i. If the dimensions match, the program will output v. w.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 14:30
The β€œrule of 72” is used to approximate the time required for prices to double due to inflation. if the inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. for instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. write a program to test the accuracy of this rule. for each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year.)
Answers: 1
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
question
Computers and Technology, 24.06.2019 16:50
Ideally, the backrest is tilted back slightly, so when you turn the wheel your shoulders are the seat.
Answers: 2
question
Computers and Technology, 24.06.2019 23:30
Which example can be considered master data in an organization? a. holiday list b. dress code c. employee information d. recreational activities
Answers: 1
You know the right answer?
1. Create a Python program that does the following from inputting vectors v and w. Use functions in...
Questions
question
Mathematics, 02.08.2019 03:30
Questions on the website: 13722367