Question: Question 1 (15 marks) o) (5 marks) The following programming model contains in its code memory the indicated C program composed of a single main


Question 1 (15 marks) o) (5 marks) The following programming model contains in its code memory the indicated C program composed of a single main function. You will be showing how the working memory is used during the execution of main. Show hovw the given C program affects the contents of the working memory . Show the values are assigned to the variables. Be sure to show all values that are assigned and replaced. Record successive assignments to variables/parameters as follows Variable naime 2/6,4, 10 Code Memory Working Memory void sain void Int 1ogiovar f logio varlable fi some variables for oreating logio expeessions CPU (b) (10 marks) The following programming model contains in its code memory the indicated C program composed of 2 functions. You must show how the working memory is used during the execution of the two functions. Each piece of working memory is associated to a function using a pair of lines. (Note: the first pair of lines associates the piece of working memory allocated to the function main and the second pair of lines associates the piece allocated to the function computeVariance4). Show how the given C program affects the contents of the working memory: Show the values are assigned to variables. Be sure to show all values that are assigned and replaced. Rccord successive assignments to variables/parameters as follows: . Using arrows show how values are copied between the working memory allocated to the function main and the working memory allocated to the function computeNetResistance. . In the console window show the output of the program Code Memory Working Memory include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
