#π Can someone help me out with my homework?
16 messages Β· Page 1 of 1 (latest)
@peak agate
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
is this all the information for the task? is it supposed to be pseudo code?
i dont see information about the file format
Yeah
so, what are you struggling with? we cant just do everything for you, we want to see your thought process and maybe guide you toward the solution, not just give it to you
Iβll type out what I currently have
Gimme a sec
Start loop for i to length of array
Then if the year(dateRented(i)) == 2025 and returned(i) == False
Then month = Month(dateRented(i))
If Month is greater than 1 and less than 6 then fee() = 10
Else fee = 5
Iβm not sure itβs 100% correct tho
Also sorry if formatting is off Iβm typing on phone
Seem alright, I'd specify it's less than or equal to 6 instead of just less than 6
Same for greater than 1
The way it's written, tools rented in January or June won't get fined Β£10
and you probally need to calculate the total (sum them up) or write them into the respective indices, though that would mean that initially it would have to be zero initialized or something, but otherwise why would it be wrong? it pretty much matches the problem description
I often struggle with design techniques quite a bit and often lose marks so Iβd like to just make sure
the problem is too small for "design techniques" to be applicable
This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.