Question: Number 4 in Java please a * * * * . . * * e * * * 4)(10 points) In your main you should
Number 4 in Java please
a * * * * . . * * e * * * 4)(10 points) In your main you should test a letter frequency analysis out on some arbitrary text. (See the example to the right.) This requires createLetter Histogram to generate a histogram normalizeArray to normalize the letter frequencies Create a label array with each letter in it b drawHistogram to visualize the resulting frequencies d * String vText = "Voila! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of f Fate. This visage, no mere veneer of vanity, g is a vestige of the vox populi, now vacant, vanished. However, this valorous visitation of h a by-gone vexation, stands vivified, and has i vowed to vanquish these venal and virulent vermin van-guarding vice and vouchsafing the j violently vicious and voracious violation of k volition. The only verdict is vengeance; a 1 * vendetta, held as a votive, not in vain, for the value and veracity of such shall one day m vindicate the vigilant and the virtuous. Verily, this vichyssoise of verbiage veers * most verbose, so let me simply add that it is my very good honor to meet you and you may call me V. And you would be?"; 9 * * * * * * * n * * * O * r S * * 5) (15 points) Using the process from step 4, you will generate the letter frequency analysis on two books. You should go download two books in different languages and see if the language frequency looks different. Get books here: t * * u * V * * W http://www.gutenberg.org/ Save the Plain Text (UTF-8) or similarly named file as a .txt in the BlueJ project folder. Then use the helper code below to load that into a String for you to generate the letter analysis. Z
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
