subject

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. g

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 09:00, breella0
Howard is designing a chair swing ride. the swing ropes are 5 meters long, and in full swing they tilt in an angle of 29° outside chairs to be 2.75 m above the ground in full swing.
Answers: 1
image
Computers and Technology, 22.06.2019 21:30, mima851
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
image
Computers and Technology, 22.06.2019 23:30, ansonhunter8891
What are listed in the vertical columns across the top of the event editor? a. file names b. conditions c. check marks d. action types
Answers: 1
image
Computers and Technology, 24.06.2019 09:00, lisacarter0804
Why might you chose to crest a function resume
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 in other subjects:

Konu
English, 06.12.2021 05:30
Konu
Mathematics, 06.12.2021 05:30
Konu
Mathematics, 06.12.2021 05:30