Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Python: What's Allowed? We've finally learned a substantial bit of programming! On this assignment, don't import anything except math, other than that you should
In Python:
What's Allowed? We've finally learned a substantial bit of programming! On this assignment, don't import anything except math, other than that you should be able to use any built-ins that you want, the project focuses on class structure, so there's not likely to be things that would make for any shortcuts. Procedure Complete the class definitions as described, you can test your code with the included testing file: Invoke it as with prior assignments: python3 tester6p.py yourcode.py You can also test individual parts of the code, but note that you either want to type a class name or the name of a batch of test cases. You can either use the class name to test init str ,and eq (any "basic functionality' tests), or the other method names from Train, City, and Journey classes python tester6p.py yourcode.py Train python tester6p.py yourcode.py unload passengers python tester6p.py yourcode.py Train City Journey add destination In addition to method and class names, these three names can be used to test exception behavior of relevant methods/classes: unload passengers exception, load passengers exception, and journey type error. You can also run your code in interactive mode python3 i yourcode.pyStep 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