There is a task:
A text (an array of character strings) is given, each character of which can be a letter, a digit, or one of the +, -, * signs. Count the number of occurrences of the letter f in the first three groups of letters.
Solve need on pascal.
With numbers it is still clear. But with the characters. I wonβt figure out how to fill the array at random so that there are letters, numbers, and +, -, * signs. In this case, the parameters of the array need to be determined from the keyboard. All this should be in two procedures. One to enter the matrix. The second to display the matrix on the screen. Or is there no such possibility in Pascal? Then it is better to enter lines from the keyboard?
Then count the first three groups of letters. This means that the line can be, for example, five words separated by spaces, and the search for the letter f should be performed only in the first three words. I understood correctly?
How can this be implemented?
Please show me an example, but since yesterday, brains with this task are already on the back :)