Answer:
a. We <u>used to</u> go to school together.
b. How did you <u>use to</u> spend the winter evenings?
c. We <u>used to </u>have our milk delivered.
d. I <u>used to</u> be in love with him.
e. At one time there <u>used to</u> be trees in the garden.
Hard disk Drive, random access memory, USB flash memory
Answer:
System of linear equations is solved below and explained in detail.
Explanation:
Part a:
M = [1 3 5 2; 2 -4 7 -3; 0 -4 -7 3; 5 -3 2 1];
c = [7; -3; -1; 0];
Part b:
The statement used for the solution of system of linear equation will be:
X = linsolve(M,c)
where X will give the values of x1, x2, x3, x4 respectively.
Part c:
The system is solved in matlab using above equation and the results are attached in a file.
The values for X are:
x1 = -2/7
x2 = 3/7
x3 = 4/7
x4 = 11/7
Answer:
See Explanation
Explanation:
Given
The attached function
What the recursion does is that; it adds up individual digits from N to 0
Solving (a): Each output when N = 6
For N = 6.
The function returns the following values:
f(6) = 6
Then: 6 + f(5)
Then: 6 + 5 + f(4)
Then: 6 + 5 + 4 + f(3)
Then: 6 + 5 + 4 + 3 + f(2)
Then: 6 + 5 + 4 + 3 + 2 + f(1)
Then: 6 + 5 + 4 + 3 + 2 + 1 + f(0)
Then: 6 + 5 + 4 + 3 + 2 + 1 + 0 = 21
Solving (b): The output when N = 7
Using the same process in (a) above.
The output is 28
A syntax error can be a simple mistake as a typo or an extra space. A logical error has to do with the code structure, and if it makes sense.
Hope this helps!