Question: Identify four errors in this algorithm. 01 NumberProducts 50 // length of array Product Name [] 02 OUTPUT Please enter product to find 03
Identify four errors in this algorithm.
![01 NumberProducts 50 // length of array Product Name [] 02 OUTPUT](https://dsd5zvtm8ll6.cloudfront.net/images/question_images/1750/2/3/0/761685266e993e3b1750230762047.jpg)
01 NumberProducts 50 // length of array Product Name [] 02 OUTPUT "Please enter product to find " 03 INPUT Product 04 Found FALSE - 05 Counter 1 06 REPEAT + 07 IF Product = Product Name [Counter] 08 09 THEN Found FALSE 10 ELSE 11 Counter Counter - 1 12 ENDIF 13 UNTIL Found AND Counter > NumberProducts 14 IF Found 15 16 17 18 THEN OUTPUT Product, "found at position ", Counter, "in the list." ELSE OUTPUT Name, "not found." 19 ENDIF
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
