revise the M5Lab2dice_hist.py file. Pseudocode - Revise module 2 in your pseudocode to add these steps: 1. Roll the dice 1000 times 2. Do not print the results 3. Instead, print the frequencies from a list called frequencies[] a. Frequencies are the number of times each number appears 4. Add the titles to your bar chart a. # They are string values that appear at the top b. # List the titles for the x axis and they axis of your chart c. # See the example in the code to support your pseudocode 5. Render the chart to appear in a "dice_barchart.svg" file 6. Add your name to the chart's title 7. Test your chart by dragging the file dice_barchart.svg into any Web browser window 8. If you see your bar chart with 6 columns, examine it a. Hover your cursor over each column to see the values for 1000 dice rolls 9. Save your pseudocode as M5Lab2ii.docx
revise the M5Lab2dice_hist.py file. Pseudocode - Revise module 2 in your pseudocode to add these steps: 1. Roll the dice 1000 times 2. Do not print the results 3. Instead, print the frequencies from a list called frequencies[] a. Frequencies are the number of times each number appears 4. Add the titles to your bar chart a. # They are string values that appear at the top b. # List the titles for the x axis and they axis of your chart c. # See the example in the code to support your pseudocode 5. Render the chart to appear in a "dice_barchart.svg" file 6. Add your name to the chart's title 7. Test your chart by dragging the file dice_barchart.svg into any Web browser window 8. If you see your bar chart with 6 columns, examine it a. Hover your cursor over each column to see the values for 1000 dice rolls 9. Save your pseudocode as M5Lab2ii.docx
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
![←
CCDCon
Dashbo D2L M5 X b Home
43°F
Clear
Cisco WD21 Final Pr
4. Add the titles to your bar chart
C 8 https://mycourses.cccs.edu/d21/lms/dropbox/user/folder_submit_files.d2l?db=445390&grpid=0&isprv=0&bp=0&ou=83491
revise the M5Lab2dice_hist.py file.
Pseudocode - Revise module 2 in your pseudocode to add these steps:
how to
1. Roll the dice 1000 times
2. Do not print the results
3. Instead, print the frequencies from a list called frequencies[]
a. Frequencies are the number of times each number appears
PDF Oracle
a. # They are string values that appear at the top
b. # List the titles for the x axis and the y axis of your chart
c. # See the example in the code to support your pseudocode
Cancel
Python code - Revise module 2 in M5Lab2dice_hist.py to add these steps:
Submit
al draws the bar chart or histogram for you
QL
5. Render the chart to appear in a "dice_barchart.svg" file
6. Add your name to the chart's title
7. Test your chart by dragging the file dice_barchart.svg into any Web browser
window
8. If you see your bar chart with 6 columns, examine it
a. Hover your cursor over each column to see the values for 1000 dice
rolls
9. Save your pseudocode as M5Lab2ii.docx
I
Word W M5 Assi b Answere W
✔
Hands w
Hands Gerd diac +
A
{"
[+]
●f
4:07 PM
12/9/2022
x
Q
+](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb2eb79f9-fbe8-417a-90af-3a0b5f5dec80%2Febbece5c-f454-4ec8-9572-9e0207a12c83%2Fcxos4vk_processed.png&w=3840&q=75)
Transcribed Image Text:←
CCDCon
Dashbo D2L M5 X b Home
43°F
Clear
Cisco WD21 Final Pr
4. Add the titles to your bar chart
C 8 https://mycourses.cccs.edu/d21/lms/dropbox/user/folder_submit_files.d2l?db=445390&grpid=0&isprv=0&bp=0&ou=83491
revise the M5Lab2dice_hist.py file.
Pseudocode - Revise module 2 in your pseudocode to add these steps:
how to
1. Roll the dice 1000 times
2. Do not print the results
3. Instead, print the frequencies from a list called frequencies[]
a. Frequencies are the number of times each number appears
PDF Oracle
a. # They are string values that appear at the top
b. # List the titles for the x axis and the y axis of your chart
c. # See the example in the code to support your pseudocode
Cancel
Python code - Revise module 2 in M5Lab2dice_hist.py to add these steps:
Submit
al draws the bar chart or histogram for you
QL
5. Render the chart to appear in a "dice_barchart.svg" file
6. Add your name to the chart's title
7. Test your chart by dragging the file dice_barchart.svg into any Web browser
window
8. If you see your bar chart with 6 columns, examine it
a. Hover your cursor over each column to see the values for 1000 dice
rolls
9. Save your pseudocode as M5Lab2ii.docx
I
Word W M5 Assi b Answere W
✔
Hands w
Hands Gerd diac +
A
{"
[+]
●f
4:07 PM
12/9/2022
x
Q
+
![43°F
Clear
CCDCon Dashbo D21 M5 X b My Que
Cisco WD21 Final Pr
Submit
how to PDF Oracle
https://mycourses.cccs.edu/d2l/lms/dropbox/user/folder_submit_files.d2l?db=445390&grpid=0&isprv=0&bp=0&ou=83491
1. import Pygal # Pygal draws the bar chart or histogram for you
2. import the Dice class # from dice import Dice
3. declare the variable dice and assign the value to the class name Dice()
a. # variable_name = Class()
4. Declare an empty list called results
5. Declare an empty frequencies list for the tracking how often each die value
appears
6. Declare a variable frequency and assign it to results.count(value)
a. # Tracks the number of times each value from 1-6 is rolled
7. print the frequencies # the format is print(listname)
8. Bar chart: declare a variable hist and assign it the value pygal.Bar()
9. Declare a hist.title variable and set the value to the following
a. Your Name - Results of 1000 6-Sided Dice Rolls
b. Replace "Your Name" with your name
10. Declare a hist.x_title and set the value to Result using a string
11. Declare a hist.y_title and set the string value to "How Often Did We Roll a 1, 2,
3, 4, 5, or 6?"
Cancel
Word W M5 Assi b Answere W
a. # Tip: do not copy the string values surrounded by quotes from A MS
Word file.
b. # They use the wrong quotation symbols. Retype the quotation marks in
lice_hist.py file into the same folder as dice.py
program filos must be in the came folder.
QL
■
■
Hands w
Hands Gerd diac +
A
{"
[+]
10
4:08 PM
12/9/2022
x
Q
PP
+](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fb2eb79f9-fbe8-417a-90af-3a0b5f5dec80%2Febbece5c-f454-4ec8-9572-9e0207a12c83%2Fxhv225j_processed.png&w=3840&q=75)
Transcribed Image Text:43°F
Clear
CCDCon Dashbo D21 M5 X b My Que
Cisco WD21 Final Pr
Submit
how to PDF Oracle
https://mycourses.cccs.edu/d2l/lms/dropbox/user/folder_submit_files.d2l?db=445390&grpid=0&isprv=0&bp=0&ou=83491
1. import Pygal # Pygal draws the bar chart or histogram for you
2. import the Dice class # from dice import Dice
3. declare the variable dice and assign the value to the class name Dice()
a. # variable_name = Class()
4. Declare an empty list called results
5. Declare an empty frequencies list for the tracking how often each die value
appears
6. Declare a variable frequency and assign it to results.count(value)
a. # Tracks the number of times each value from 1-6 is rolled
7. print the frequencies # the format is print(listname)
8. Bar chart: declare a variable hist and assign it the value pygal.Bar()
9. Declare a hist.title variable and set the value to the following
a. Your Name - Results of 1000 6-Sided Dice Rolls
b. Replace "Your Name" with your name
10. Declare a hist.x_title and set the value to Result using a string
11. Declare a hist.y_title and set the string value to "How Often Did We Roll a 1, 2,
3, 4, 5, or 6?"
Cancel
Word W M5 Assi b Answere W
a. # Tip: do not copy the string values surrounded by quotes from A MS
Word file.
b. # They use the wrong quotation symbols. Retype the quotation marks in
lice_hist.py file into the same folder as dice.py
program filos must be in the came folder.
QL
■
■
Hands w
Hands Gerd diac +
A
{"
[+]
10
4:08 PM
12/9/2022
x
Q
PP
+
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education