Develop an algorithm, using either pseudo-code or a flowchart, that:
activeSensor to FalseactiveSensor to True if the string contained in the variable sensorID is exactly 3 characters in length, begins with a lowercase 'w', has a lowercase 's' as its second character, and has a single numeric digit as its third characterExamples:
sensorID is "ws0" or "ws7", then activeSensor should be TruesensorID is "Ws7", "ws", "ws7a", or "ws78", then activeSensor should be FalseYou may wish to use the following in your answer:
isDigit(ch) which returns True if the character ch is a digit (e.g., "0" to "9") and False otherwise.length(string) which returns the number of characters in a string.208 exam-style questions on AQA GCSE Computer Science Representing algorithms. Each one has a worked solution and a mark scheme showing where the marks go.