Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

String Counter Count ) : e ) . rjust ( 2 ) } ) In this problem, you will be creating a program to

String Counter
"Count")
:
e).rjust(2)}")
In this problem, you will be creating a program to count characters or words based on input from another string you receive from input. The items to count will come from input in the form of a singular string with semicolons ; separating each different item to count.
The first input will be the string to count the characters/words in whereas the second input will consist of the items to count split up by semicolons. The input prompts should be as follows:
"Enter the string: ??
"
"Enter the characters/words to count: 1n"
The first input will need to be converted to all lowercase prior to counting the occurrences of the characters/words from the second input.
Once the second input has been split up, count up the occurrences of each character/word and store those results to be printed out.
The final output should start with a title as follows:
Char/word.......Count
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

What are negative messages? (Objective 1)

Answered: 1 week ago