Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python only Design a class named VowelAnalysis which represents an analysis of vowels in a sentence. The VowelAnalysis class contains the following: - A data

python onlyimage text in transcribed

Design a class named VowelAnalysis which represents an analysis of vowels in a sentence. The VowelAnalysis class contains the following: - A data field (or attribute) named text that defines a line of text converted to lowercase. Note: you can assume that the line of text is plain text without any punctuation marks. The text contains 1 or more words and each word is separated by a single space. - A data field (or attribute) named vowels_count_dict that defines a dictionary that contains the number of each of the vowels in the text. - A constructor/initializer that takes a line of text as a parameter, converted it to lowercase and creates a vowel analysis object. The default valin empty string. The initializer should count the number of each vowel (i.e. a,e,i,o and u ) and set up the above the vowels_count dictionary. Submit the entire class definition. Note - keep a copy of your solution to this task because you will be extending it step by step in subsequent tasks

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions