A company has launched a new text editor that allows users to enter English letters, numbers and whitespaces only. If a user attempts to enter any other type of character, it is counted as a miss. Given a string of text, write an algorithm to help the developer detect the number of misses by a given user in the given input. Input The input consists of a string textlnput, representing the text that is entered in the text editor by the user. Output Print an integer representing the number of misses by a given user in the given input. Example Input: aa a234bc@ sad$ hsagd^ Output: 3 Explanation: The characters that are counted as misses by the editor are [‘@’,’$’,’^’]
Answers
A business has released a new text editor that only accepts English letters, digits, and whitespaces. A miss is recorded whenever a user attempts to input any other sort of character. Write an algorithm to assist the developer in detecting the number of misses by a given user in the given input given a string of text.
Nanotechnology refers to the fields of science and engineering in which phenomena occurring at nanometre scales are used in the design, characterization, manufacture, and application of materials, structures, devices, and systems.
Input
The input consists of a string text input, which represents the text entered by the user into the text editor.
Output
In the supplied input, print an integer reflecting the number of misses by a certain user.
Answer:
33
Explanation:
ft v g hy uj88tyytkzogtxtoxyll9y7