Create a function called def histogram(csvfilename) that draws a histogram of the scores in the csv file . The scores range from 0 to 100. For this question, ignore all games that have a score of 0 Your histogram should consist of exactly 3 rectangles, each representing the count of how many games are in a range of scores. The ranges are: 0 < rectangle 1 <= 10  10 < rectangle 2 <= 20 20 < rectangle 3 <= 30   At the top of each rectangle write the number of games. Underneath the entire histogram, put a label saying what file the data is from. Use the turtle.write function to add text and draw this.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 9PE
icon
Related questions
Question

Create a function called def histogram(csvfilename) that draws a histogram of the scores in the csv file .

The scores range from 0 to 100. For this question, ignore all games that have a score of 0

Your histogram should consist of exactly 3 rectangles, each representing the count of how many games are in a range of scores. The ranges are:

0 < rectangle 1 <= 10 
10 < rectangle 2 <= 20
20 < rectangle 3 <= 30
 

At the top of each rectangle write the number of games. Underneath the entire histogram, put a label saying what file the data is from. Use the turtle.write function to add text and draw this.

 

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
File Input and Output Operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT