Homework Questions? Ask a Tutor for Answers ASAP
Can we get more details on this? Deadline? What is it supposed to do? Are we looking to fix errors in your modules or simply link them? What calls are made to access the module (what is the expected return value (integer string, combination of them? That would be returned from each module?
Ah, car/or, or car and/or?
and/or both? :)
Well of course! If only to be stored and quickly merged or displayed. Unless you can figure calling both classes and outputting each of them before ending.
All cars by price, all trucks by price, all vehicles by price, all vehicles by manufacturer.
I see you have a price declared in _init_ but no price object in truck class
You set price in vehicle class, but does truck inherit from vehicle?
Looks like it does...so the next thing to check on is output requirements
Have you tried testing your output using _repr_? a simple test output class to check your classes(replace the word "test()" with the module *class you want to see results on, and be aware this is to make sure your values are getting through. You can also REPR into your list if you convert the data from the unicode to str):
t = Test()
I unfortunately have other projects, and will not have time to put all that together before the deadline. If I somehow do get more time open I can circle back and see if this has been done. For now I will opt out to let the others here have a chance to get this done for you. Thanks!
I'm going to have a look to see if I can help you before your deadline tonight. What version of Python do you use?Thanks,
OK, I'll be in touch soon. Do you have any additional information/requirements ? Sample output? Previous assignments to reference?
OK, please have a look at this code I wrote for you:
Please let me know if you need anything else!
Hi,just following up, were you able to use my solution? Please feel free to post any additional questions, comments or concerns you may have regarding this issue.
If you're not yet satisfied with the result, please let me know what is missing. I will do my best to make it right for you.
Otherwise, please don't forget to rate my service - I don't get paid for my work until your rating is received.