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

Q2) 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 %2c and %2d 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 =28
alpStringLength =26
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
00105021300123200112001000

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!