Question: 1 . Create a main function, which initializes an ARRAY of 1 0 unsigned char arbitrary numbers and reserves space for another 1 0 -

1. Create a main function, which initializes an ARRAY of 10 unsigned char arbitrary numbers and reserves space for another 10-element array called EVENS. Then create functions as described below. The main function should call the functions in the order shown in this description, then execute an infinite loop. 2. Function Even_Cnt counts the number of even array elements. The total element count for the source array (10), and the address of the source array are passed as function parameters. The count of even elements is returned from the function. Upon returning, main should save the even count value, as it may be needed later in the program. 3. Function Copy_Even copies all the even ARRAY elements to the array called EVENS. The number of elements to scan (10), and the addresses of the source and target arrays are passed as function parameters. In your debugging session, use Code Warrior features to break the code at the entry point of this function. Then get a screen shot of the stack from the memory window. Identify where the parameters (number of elements, source address, target address) are shown in the stack frame.Test your code and document your results for the following cases: case 1: 7 even elements, 3 odd elements case 2: 5 even elements, 5 odd elements This is an official lab in which a professional report is to be turned in. Include in your single pdf file an MSPEC, PCODE, unit test plan, and clearly documented test results for all test cases. The test results can be captured by using the SNIP tool on Code Warrior debugger memory display or variable window. Make sure your documentation is clear and easy to read.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!