Question: Write a lua function, called charFreq, that creates a dictionary from a given string that containsall the characters that appear more than 2 times. Your

Write a lua function, called charFreq, that creates a dictionary from a given string that containsall the characters that appear more than 2 times. Your function should take as input a table representing a dictionary and a string and include the code below function charFreq(freqDict,str) --add code end freqDict = {} charFreq(freqDict, "Welcome to Programming Language Theory") for key, value in pairs(freqDict) do print(key,value) end Program output(count must match) g4 04 e4 m3 a3 r3 n2

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!