Home /
Expert Answers /
Computer Science /
secondary-school-python-programming-pseudocode-need-solutions-thanks-in-advance-a-pseudo-pa526
(Solved):
Secondary school Python programming. Pseudocode. Need solutions. Thanks in advance.
A pseudo- ...
Secondary school Python programming. Pseudocode. Need solutions. Thanks in advance.
A pseudo-code algorithm: - allows a user to input 10 numbers and store them in a list - allows the user to input a number to search for - outputs a message to show if the number is in the list - outputs a message to show if the number is not in the list. 1 FOR Count =0 TO 9 2 OUTPUT "Input a number" 3 INPUT Numbers [x] 4 NEXT Count 5 OUTPUT "Input the number to search for" 6 INPUT Search 7 Flag = EALSE 8 FOR Count =0 TO 10 9 IF Number[Count] == search THEN 10 Flag = TRUE 11 ENDIF 12 NEXT COunt 13 IF Flag = FALSE THEN 14 OUTPUT "It is in the list" 15 ELSE 16 OUTEUT "It is not in the 1 ist" 17 ENDIF FOR count =0 TO 9 OUTPUT "Input a number" INPU'T Numbers [ % ] NEXT Count 5 OUTPuT "Input the number to search for" INPUT Search Flag = FALSE FOR Count =0 TO 10 IF Number[Count] == Search THEN Flag = TRUE ENDIF 12 NEXT Count 13 IF Flag == FALSE THEN 14 OUTPUT "It is in the list" 15 ELSE 16 OUTPUT "It is not in the list" 17 ENDIF There are four errors in the given algorithm. State each error and write the correct pseudo-code. Error 1 Correction Error 2 Correction Error 3 Correction Error 4 Correction