Thank you! Base on all the methods 1-4, I want to write another method: The spec for method 5 A method to print a text-based histogram takes one parameter, an array of integers no return value Image 1 is the example of the expected output Hint: it bacsically means: for example, if I have number 20 appears one time in my method, then we print a star(*) after number 20. I think we can use this method 4 to get this information.
Thank you!
Base on all the methods 1-4, I want to write another method:
The spec for method 5
A method to print a text-based histogram
-
takes one parameter, an array of integers
-
no return value
Image 1 is the example of the expected output
Hint: it bacsically means: for example, if I have number 20 appears one time in my method, then we print a star(*) after number 20. I think we can use this method 4 to get this information.
![histogram of the data and output some statistics.
input file name? seattle average_temps_2021.txt
01
1|
21
3|
41
51
61
71
81
91
10|
11|
12|
13|
14|
15|
16|
171
18|
19|
201 *
The program begins by pri](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F6c680976-d041-43f6-b2b7-59630778639d%2Fa8a9503c-ce13-4321-a6de-c46906e3d2d1%2F7s43xwm_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Thank you base on this question I want to write one more method.
The spec for this method is
write a method to print out the Mode
for example, in ur
plz provide a screenshot of your code when it's finished.
Thanks!
Thanks!
base one your
plz provide a screenshot of your code when u done
![PS C:\Users\tshub\Desktop\New
PS C:\Users\tshub\Desktop\New
The program will analyze data from a dataset of
non-negative integer values. It will produce a
histogram of the data and output some statistics.
input file name?
5
count of 1 : 0
count of 2 : 1
count of 3: 2
count of 4:3
count of 5: 23
Histogram:
1|
2 *
31 **
4 ***
folder> javac FunWithHistograms.java
folder> java FunWithHistograms
seattle_average_temps_2021.txt
*******
don't print out
5 ***
PS C:\Users\tshub\Desktop\New folder> |](https://content.bartleby.com/qna-images/question/6c680976-d041-43f6-b2b7-59630778639d/06a8c86d-bca0-4b5d-8a0f-96f0ce8021ab/z4parse_thumbnail.jpeg)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Computer Networking: A Top-Down Approach (7th Edi…](https://www.bartleby.com/isbn_cover_images/9780133594140/9780133594140_smallCoverImage.gif)
![Computer Organization and Design MIPS Edition, Fi…](https://www.bartleby.com/isbn_cover_images/9780124077263/9780124077263_smallCoverImage.gif)
![Network+ Guide to Networks (MindTap Course List)](https://www.bartleby.com/isbn_cover_images/9781337569330/9781337569330_smallCoverImage.gif)
![Concepts of Database Management](https://www.bartleby.com/isbn_cover_images/9781337093422/9781337093422_smallCoverImage.gif)
![Prelude to Programming](https://www.bartleby.com/isbn_cover_images/9780133750423/9780133750423_smallCoverImage.jpg)
![Sc Business Data Communications and Networking, T…](https://www.bartleby.com/isbn_cover_images/9781119368830/9781119368830_smallCoverImage.gif)