Write a script that inputs several lines of text and a search character and uses String method indexOf to determine the number of occurrences of the character in the text.
What will be an ideal response?
```
1
2
3
4
5
6
7
8
9
35
36
37
38
You might also like to view...
Answer the following statements true (T) or false (F)
1. To write to a binary file, you can use the write() member function of an of stream object. 2. The ios::hardfail bit is set when an unrecoverable error occurs. 3. When a recursive function directly calls itself, this is known as direct recursion. 4. Indirect recursion means that a function calls itself several times. 5. A recursive function cannot call a function other than itself.
The ________ action is used to reference a macro group, listing each macro as a separate option in the Shortcut Menu
A) AddMacro B) Name C) Condition D) AddMenu
When a table is selected, and the values in the Before and After options in the Spacing section of the Paragraph dialog box are increased, the result is ________
A) more space before and after the table B) more space above and below the content in each cell C) more space above and below any paragraph that precedes or follows the table D) no change in the table display
The code within a finally block cannot execute if the preceding try block identifies an exception.
Answer the following statement true (T) or false (F)