Answer:
Shows the programming checking if num1 is greater than num2
Explanation:
So num1 and num2 are inputs
for you to code this you would need to put
num1=int(input("What is your first number? ))
and the same for num2 except change num1 for num 2 and first for second
When the input is completed, the computer will check if num 1 is greater than num2
it will do this by using a code something like:
if num1>num2:
Print("Your first input was greater than your second")
But in this example if it greater it just ends
But if it was less than you would put
if num1>num2:
Print("Your first input was greater than your second")
elif num1<num2:
Print("Your first input is less than your second")
So basically this code shows the computer checking if one number is greater than the other or not
They are arranged the way they are because of the QWERTY layout. It was used to slow down how people typed so they wouldn't get the typewriter jammed. Hope this helps. :)
Answer:
Consider the following code.
Explanation:
save the following code in read_and_interp.m
function X = read_and_interp(s)
[m, n] = size(s);
X = zeros(m, 1);
for i = 1:m
if(str2num(s(i, 2:5)) == 9999)
% compute value based on previous and next entries in s array
% s(i, 2:5) retrieves columns 2-5 in ith row
X(i,1) = (str2num(s(i-1 ,2:5)) + str2num(s(i+1,2:5)))/2;
else
X(i,1) = str2num(s(i,2:5));
end
end
end
======================
Now you can use teh function as shown below
s = [ 'A' '0096' ; 'B' '0114' ; 'C' '9999' ; 'D' '0105' ; 'E' '0112' ];
read_and_interp(s)
output
ans =
96.000
114.000
109.500
105.000
112.000
colorfulness and depending on your teacher pick colors that will go together on the project
Answer:
in computer science, an instruction is a single operation of a processor defined by the instruction set
Explanation:
if you need anymore help let me know :)