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, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 04.07.2019 19:20
The quality is zero at a)-the saturated vapour state b)-the saturated liquid state c)-the saturated liquid-vapour mixture state d)-none of the states in the other answers
Answers: 3
question
Engineering, 05.07.2019 19:10
Tech a says never use a water hose to clean up dust after a repair. tech b says never use a floor scrubber to clean up dust after repairs. who is correct?
Answers: 1
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
Questions on the website: 13722361