One of the files is the instructions. One is what I have so far.  My question's are: I'm confused about what they mean by holds the following data attributes. Do I write any code for that? ALSO: for list of number of gear teeth values- I'm not sure what they mean by should have a length equal to... etc. How would I write that in python? Thanks

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

One of the files is the instructions. One is what I have so far. 

My question's are: I'm confused about what they mean by holds the following data attributes. Do I write any code for that?

ALSO: for list of number of gear teeth values- I'm not sure what they mean by should have a length equal to... etc. How would I write that in python?

Thanks 

Write a class named Gear_Train that holds specitic data and procedures for a gear train in
Python. The class will require data attributes, accessor methods, and mutator methods.
Data Attributes
The Gear_Train class holds the following data attributes: the number of gears in the gear
train, the module of the gears, a list of number of gear teeth values, the gear ratio, the center
distance, and the output speed.
→ The class accepts 2 arguments as input. Each argument is assigned to an appropriately
named instance variable.
1. number of gears in the gear train - a default value of 2 should be assigned if no
value is passed
2. module (i.e., size of the gear teeth in mm/tooth) - a default value of 1 should be
assigned if no value is passed
→ The remaining data attributes are initialized as instance variables
3. list of number of gear teeth values - should have a length equal to the number of
gears, with each item in the list having an initial value of 12
4. gear ratio - initialized to 1
5. center distance – initialized to 0
6. output speed – initialized to 0
Transcribed Image Text:Write a class named Gear_Train that holds specitic data and procedures for a gear train in Python. The class will require data attributes, accessor methods, and mutator methods. Data Attributes The Gear_Train class holds the following data attributes: the number of gears in the gear train, the module of the gears, a list of number of gear teeth values, the gear ratio, the center distance, and the output speed. → The class accepts 2 arguments as input. Each argument is assigned to an appropriately named instance variable. 1. number of gears in the gear train - a default value of 2 should be assigned if no value is passed 2. module (i.e., size of the gear teeth in mm/tooth) - a default value of 1 should be assigned if no value is passed → The remaining data attributes are initialized as instance variables 3. list of number of gear teeth values - should have a length equal to the number of gears, with each item in the list having an initial value of 12 4. gear ratio - initialized to 1 5. center distance – initialized to 0 6. output speed – initialized to 0
class Gear_ Train(self,number_of__gears=2,module=1):
self.number of gears=number_of_gears
self.module= module
self.list gear teeth= 12 #more
self.gear ratio= 1
self.center distance=0
self.output_speed=0
Transcribed Image Text:class Gear_ Train(self,number_of__gears=2,module=1): self.number of gears=number_of_gears self.module= module self.list gear teeth= 12 #more self.gear ratio= 1 self.center distance=0 self.output_speed=0
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY