Question: Question 8 [25 Points] Points Awarded: The histogram method has two input parameters: an array of char data, and an array of int data. w

 Question 8 [25 Points] Points Awarded: The histogram method has two

Question 8 [25 Points] Points Awarded: The histogram method has two input parameters: an array of char data, and an array of int data. w The char and int arrays passed will always have the same number of elements in them, but the actual character values and integer values could vary from method call to method call. The histogram method does not return a value. Requirement: Complete the histogram method that draws a histogram using the data stored to the first-array(char() label) passed to the method as the represented by each row in the histogram output, and the data stored to the second-array (ints [] counts) passed to the method as the frequency distribution of that value. Use asterisks () to represent the cdayat of each value in the histogram. For example, if passed the following char and int arrays: ('a', 'c','p, 'i') // char array holds the values or labels {4, 10, 22,5) // int array holds the frequency distribution Then the output from this method should be: a: **** C: f: i: ***** The signature header for the histogram method is below (next page)

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!