Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 - Objects You are to implement the following functions: getCharacterFrequency -10pts This function takes a single string (str) argument and returns an object.
Question 2 - Objects You are to implement the following functions: getCharacterFrequency -10pts This function takes a single string (str) argument and returns an object. o The object's properties will be the unique letters present in str The value of each property will be the frequency of each character present in the string. NOTE: Uppercase and Lowercase letters should be grouped in the same count. For example, the word Babble would result in the following object "B3, 11 This count includes upper and lovercase B'S printcharacterFrequency 10pts This function will take a single object. The object should be of the type returned by getCharacterFrequency This function will display each character and it's corresponding frequency Each character should be surrounded by quotation marks in your output. Your output should account for singular and plural values. For example, the word Foo would result in: F' occurs 1 time o occurs 2 times Next, use the following function to generate output
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