Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write python code Week 1 Main code: p1 = Player (Paul, 21, 2100, 3, 1) p2 = Player (Patrick, 22, 2200, 4, 2) p3 =
write python code
Week 1 Main code: p1 = Player ("Paul", 21, 2100, 3, 1) p2 = Player ("Patrick", 22, 2200, 4, 2) p3 = Player ("Pierre", 23, 2300, 1, 0) p4 = Player ("Perry", 24, 2400, 0, 2) m1 = Manager ("Mary", 30, 3100, 100) m2 = Manager ("Martha", 35, 3200, 200) t1 = Team("Tigers", "Tokyo", ?, ?) t1.printTeam() t2 = Team("Titans", "Tehran", ?, ?) t2.printTeam() 'eek 1 Output: Team Tigers plays in Tokyo rating 9 value 7500 * Managed by Mary is 30 years old earns 3100/m - also gets 100 for travel so 3200 total * Players: Paul is 21 years old and earns 2100/m. - has 3 goals and 1 assists and rating 7 Pierre is 23 years old and earns 2300/m - has 1 goals and 0 assists and rating 2 Team Titans plays in Tehran rating 12 value 7800 * Managed by Martha is 35 years old earns 3200/m - also gets 200 for travel so 3400 total. * Players: Patrick is 22 years old and earns 2200/m - has 4 goals and 2 assists and rating 10 Perry is 24 years old and earns 2400/m. - has 0 goals and 2 assists and rating 2Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started