Answered step by step
Verified Expert Solution
Question
1 Approved Answer
FOR JAVA PROGRAMMING PLEASE Instructions Write a Java program/class which will create a two-dimensional array loaded with random, lower-case letters (a-z), print the array by
FOR JAVA PROGRAMMING PLEASE
Instructions Write a Java program/class which will create a two-dimensional array loaded with random, lower-case letters (a-z), print the array by row and column, and then calculate and print the number of times letters are found in the array. The number of rows and columns the array contains should be specified by the user. The implementation should contain the following methods: A main method which controls the flow and execution of the class (program) by calling the following methods. A method which creates the character array. This method should receive as parameters the number of rows and columns of the array to be created and return a reference variable to the newly created two-dimensional array. A method to print the two-dimensional array of characters. The array should be printed by row and column. (See output example provided.) A method that calculates the number of times letters occur in the array. This method should receive as a parameter the two-dimensional array and return a reference variable to a single-dimensional array that contains the number of times each letter occurs, i.e., an array of integers. A method that prints the character/letter counts. This method should receive as a parameter the single-dimensional array and create an appropriate and sharp- looking table with the letter counts. (See output example provided.) Example Output: Please specify the number of rows: 8 Please specify the number of columns: 16 a parameter the single-dimensional array and create an appropriate and sharp- looking table with the letter counts. (See output example provided.) Example Output: Please specify the number of rows: 8 Please specify the number of columns: 16 Table of Random Characters u timr ce ca lv do v y b k yu k l y jqi xccsrm h rig d t y tu y z b h z gly ten by o luln w m zj z i z a p zi obj yzrnmd kc ncnu fjpflon v gz v y x q z ba x r n fa rjck ng d y c k fk jbj v u kclcr Table of Character occurrences 4 b 10 4 e h - d - i - 2 7 f - 4 2 4 g 1 - k - 7 on N000 m - 4 n 8 + OU 4 4 2 r - 7 S 1 w 1 3 y - 10 6 9 ZStep 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