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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, danksans7011
The mass flow rate of the fluid remains constant in all steady flow process. a)- true b)- false
Answers: 1
image
Engineering, 04.07.2019 18:10, niicoleassssssf
Aflywheel accelerates for 5 seconds at 2 rad/s2 from a speed of 20 rpm. determine the total number of revolutions of the flywheel during the period of its acceleration. a.5.65 b.8.43 c. 723 d.6.86
Answers: 2
image
Engineering, 04.07.2019 18:10, niyawilliams23
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
image
Engineering, 04.07.2019 18:10, qwertylol12345
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
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 in other subjects:

Konu
English, 16.10.2020 01:01
Konu
Chemistry, 16.10.2020 01:01