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
icon
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
+
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
+
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
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Computational Systems
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
Database System Concepts
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education