Question: Task: The following algorithm has been implemented as an LMC program; however, the LMC program does not behave as expected and the developer has not


Task: The following algorithm has been implemented as an LMC program; however, the LMC program does not behave as expected and the developer has not indented or commented on the code making readability difficult. Algorithm CountitemsGreaterThan X n user-specified number of items x user-specified value for X c count of items greater than X while n is greater than 0 m user-specified item if m>x c=c+1n=n1 Display the count, c 2.1. To understand the LMC program, identify the errors and correct the given program so that the implementation matches the algorithm. 2.2. Describe the changes that you make and provide reasons for the changes in the provided template. 2.3. Write a test suite to be used to verify that the updated program is correct. 2.3. Write a test suite to be used to verify that the updated program is correct. 2.4. Use your test suite to demonstrate that the program is correct. 2.5. Provide indentation and comments in the LMC program where necessary. Hint: The changes required are small. Do not rewrite the code, only modify the given code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
