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
Answer:
87 66 55
Explanation:
Array is used o store the multiple values with same data type.
the array show a decimal value .66, i assume this is enter by mistake because option has no decimal value.
The index of the array is start from zero, it means the first element store in the array at position zero.
In the for loop the variable 'i' start from 1 not zero and it goes to i<4 means i=3.
So, it access the element from 2 to 4 because the index is position of element less than 1.
Therefore, 87 66 55 print.
This would be a mentor-D. They role is to mentor or guide you with advice or assistance. A role model is a similar answer in that they respect you, but they might not offer advice or assistance which makes it incorrect.
The kinds and ways to improve your diagnostic and troubleshooting skills are:
- Be Relax and never panic when you encounter it.
- Know everything about your computer.
- Look for solutions and clues and state them down.
- Find out the repeatability.
<h3>What is diagnostic and troubleshooting?</h3>
Diagnosing is known to be the act of finding out the root cause of any issue through an act of elimination but troubleshooting is known to be the act of fixing of the problem after diagnosis is said to have been carried out.
Therefore, The kinds and ways to improve your diagnostic and troubleshooting skills are:
- Be Relax and never panic when you encounter it.
- Know everything about your computer.
- Look for solutions and clues and state them down.
- Find out the repeatability.
Learn more about troubleshooting skills from
brainly.com/question/14983884
#SPJ1