Question: Write a procedure called query_the_string() . The procedure should accept 2 parameters. The first parameter should be a string value, the second should be a
Write a procedure called query_the_string(). The procedure should accept 2 parameters. The first parameter should be a string value, the second should be a letter you want to look for. The purpose of the procedure is to display a message about a characteristic about any string which is passed to it. The information you are interested in is, how many times does a specific character appear in the value?
Call your procedure, passing it the parameter "Example".
The message displayed should state something like: "In the value, Example, the letter 'e' appears 2 times."
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
