subject
Engineering, 19.11.2019 19:31 mandoux

Write a program that asks the user to input a vector of integers of arbitrary length. then, using a for-end loop the program examines each element of the vector. if the element is positive, its value is doubled. if the element is negative, its value is tripled. the program displays the vector that was entered and the modified vector. execute the program, and when the program ask the user to input a vector type randi([−10 20], 1, 19). this creates a 19-element vector with random integers between −10 and 20.

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Coiled springs ought to be very strong and stiff. si3n4 is a strong, stiff material. would you select this material for a spring? explain.
Answers: 2
question
Engineering, 04.07.2019 18:10
Shafts are machine elements that are used to a) carry axial loads b) direct shear loads c) transmit power d) rotate at constant speed e) none of the above circular and square shafts subjected to the same torque under the same circum behave a) the same way b) almost the same way
Answers: 2
question
Engineering, 04.07.2019 18:10
Which from the following instrument is commonly used to detect the high pitch butzing sound in bearings? [clo4] a)-digital ultrasonic meter b)-infrared camera c)-spectroscopic d)-vibrometer
Answers: 2
question
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
You know the right answer?
Write a program that asks the user to input a vector of integers of arbitrary length. then, using a...
Questions
question
Mathematics, 05.02.2020 04:56
question
Mathematics, 05.02.2020 04:56
Questions on the website: 13722362