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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started