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 01:30
How will you cite information that is common knowledge in your research paper?
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
Write a program that uses a widgetviewer object to do the following: generate two random integers between 1 and 9 (inclusive). name one of them x, the other y. display them to the user using jlabel objects. create a jlabel object displaying the text "enter an operation number." create a jtextfield for the user's input. create a jbutton displaying the text "press here when you've entered your operation." use addandwait to add it to the widgetviewer object. when the user clicks the jbutton, evaluate operation in the following order to determine the one and only mathematical operation to perform on x and y. use a jlabel to display the result. if operation is between 1 and 10 inclusive, add x and y. if operation is evenly divisible by 4, subtract y from x. if operation is evenly divisible by 5, use integer division to divide y into x. if operation is an even number, use floating point division to divide y into x. if none of the other tests on operation apply, multiply x and y. note: operation can be negative or zero.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 23.06.2019 21:40
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings. for each match, add one point to user_score. upon a mismatch, end the game. sample output with inputs: 'rrgbryybgy' 'rrgbbrybgy'
Answers: 3
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
Chemistry, 22.10.2020 20:01
question
Mathematics, 22.10.2020 20:01
question
Social Studies, 22.10.2020 20:01
question
English, 22.10.2020 20:01
question
Mathematics, 22.10.2020 20:01
question
Mathematics, 22.10.2020 20:01
question
Spanish, 22.10.2020 20:01
Questions on the website: 13722361