OVERVIEW Module 5 Assignment 1 features the design of pseudocode to support a Python program that requires coordination between the control structures and modules of two programs. This lab asks you to write pseudocode that plans the program's logic before you write the program in Python in the next assignment. You will turn in only the pseudocode for the two modules for M5 Assignment 1. INSTRUCTIONS Write pseudocode for a Python program that makes 100 dice rolls with a single 6-sided die and displays the number of times each side appeared. Turn in the two modules for the pseudocode for the following instructions. The following steps describe what we want our two program modules to do. Before proceding, download the files dice.py, dog.py, dog_new.py and M5Lab2dice_hist.py, as all will be referenced in your assignments this week. To find these files, reference the folder Module 5>Assignments>Exercises. These files were also in the zip file you downloaded in Module 1. Requirements for Your M5 Assignment 1 Pseudocode for Program Integration For the first module, write the pseudocode to process these tasks: (Note: lines beginning with # are comments with tips for you) 1. From the random module import randint to roll each die randomly a. # in pseudocode, import a random function b. # the name is helpful for the next M5-2 assignment 2. Define a class called Dice a. In Python, the syntax has a colon after it: class Dice(): b. In pseudocode, you can specify it generally or be specific 3. Under the class declaration, list the attributes. Here are some tips: a. # attributes are what we know about a single die (dice is plural) b. # self is the first attribute in Python and must always appear first c. # add a num_sides attribute and to set it to 6 for the 6 sides on the dice
OVERVIEW Module 5 Assignment 1 features the design of pseudocode to support a Python program that requires coordination between the control structures and modules of two programs. This lab asks you to write pseudocode that plans the program's logic before you write the program in Python in the next assignment. You will turn in only the pseudocode for the two modules for M5 Assignment 1. INSTRUCTIONS Write pseudocode for a Python program that makes 100 dice rolls with a single 6-sided die and displays the number of times each side appeared. Turn in the two modules for the pseudocode for the following instructions. The following steps describe what we want our two program modules to do. Before proceding, download the files dice.py, dog.py, dog_new.py and M5Lab2dice_hist.py, as all will be referenced in your assignments this week. To find these files, reference the folder Module 5>Assignments>Exercises. These files were also in the zip file you downloaded in Module 1. Requirements for Your M5 Assignment 1 Pseudocode for Program Integration For the first module, write the pseudocode to process these tasks: (Note: lines beginning with # are comments with tips for you) 1. From the random module import randint to roll each die randomly a. # in pseudocode, import a random function b. # the name is helpful for the next M5-2 assignment 2. Define a class called Dice a. In Python, the syntax has a colon after it: class Dice(): b. In pseudocode, you can specify it generally or be specific 3. Under the class declaration, list the attributes. Here are some tips: a. # attributes are what we know about a single die (dice is plural) b. # self is the first attribute in Python and must always appear first c. # add a num_sides attribute and to set it to 6 for the 6 sides on the dice
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
Expert Solution
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 4 steps with 3 images
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
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education