Abstract an Algorithm
Pseudo-Code
Code in Python
A text file called LCCS Learning Outcomes.txt, needs to be analysed for an ALT2.
Before it can be analysed it needs to be cleaned of 3 text strings which have unexpectedly corrupted the txt file.
The 3 corrupt strings are: "123456789", "corruptcorrupt" and "Where is Wally?"
Your task is to write a program to clean the txt file of the 3 corrupt strings.
Firstly develop your algorithm and program without using any imported modules, and test it for correct functionality.
In this way you will understand the computational thinking and challenges of such a task.
Once you have developed a working program, investigate Python modules such as the re (Regular Expression) module.
LO 2.9 states that "students should be able to assemble existing algorithms or create new ones that use functions (including recursive), procedures, and modules."
The sample code in Python, and a sample txt file, are available in the sandbox below. (Uses the online IDE repl.it)