Question: Q 2 ) Include the String Library. Start with the given myString: WELCOME TO SMITH ENGINEERING Loop through to count the number of times each
Q Include the String Library.
Start with the given myString: "WELCOME TO SMITH ENGINEERING"
Loop through to count the number of times each letter appears.
Spaces will be ignored for now, that's ok
Print the full alphabet with space between every letter.
Print the counts directly underneath.
Use the c and d arguments to take care of the spacing and alignment.
Remember to start a new line at the end of your program.
Your output will look like this:
WELCOME TO SMITH ENGINEERING
myStringLength
alpStringLength
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
