Hi, I’m after some assistance with the c# ‘NeedForSpeed’ question Task 3.
- I believe we need to check if the car will run out of power BEFORE we actually drive it, but it’s not clear to me in the question what to do in the Drive() method if the car can’t drive any further, or if it is ALREADY out of power.
- Also, I can’t work out the formula for the Drive() method: At the moment, I’m just subtracting the ‘batteryDrain’ amount from the ‘battery’ amount. It doesn’t make sense to me having an integer representing the ‘speed’ of something, so I’m just adding that onto the ‘distance’ amount.
I’m just after some guidence.