Answer: my answer would be C.
Explanation:
Answer:
See below in the explanation section the Matlab script to solve the problem.
Explanation:
prompt='enter the first weight w1: ';
w1=input(prompt);
wd1=double(w1);
prompt='enter the second weight w2: ';
w2=input(prompt);
wd2=double(w2);
prompt='enter the third weight w3: ';
w3=input(prompt);
wd3=double(w3);
prompt='enter the fourth weight w4: ';
w4=input(prompt);
wd4=double(w4);
prompt='enter the first weight w5: ';
w5=input(prompt);
wd5=double(w5);
x=[wd1 wd2 wd3 wd4 wd5]
format short
Answer:
Routine
Explanation:
Loop Structures — The Method Of Repeating Routines In Statements. Repetition of code are called loops, and they are defined as statements that execute lines of code (or routines) repeatedly according to conditions or iterations. ... Take for example a routine that must write as output the string “Hello” 40 times