Question: 1 . Create a main function, which initializes an ARRAY of 1 0 unsigned char arbitrary numbers and reserves space for another 1 0 -
Create a main function, which initializes an ARRAY of unsigned char arbitrary numbers and reserves space for another 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. Function EvenCnt counts the number of even array elements. The total element count for the source array 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. Function CopyEven copies all the even ARRAY elements to the array called EVENS. The number of elements to scan 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 : even elements, odd elements case : even elements, 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
