In this lecture we learnt how to plot our graphs for currentFuel / time.

How did you get on with drawing the line for when maxFuel = 150 and burnRate = 3. Did you notice anything interesting in relation to the other lines we plotted?

In this lecture we learnt how to plot our graphs for currentFuel / time.

How did you get on with drawing the line for when maxFuel = 150 and burnRate = 3. Did you notice anything interesting in relation to the other lines we plotted?

1 Like

It was double the orange line and triple the red line.

At t = 0, m = 150.

At c = 0, t = 30.

So since when t = 0, c = m

When t = 0, c = 150

Since t = (m - c) / b

When c = 0, t = (150 - 0) / 3

So when c = 0, t = 50

Again, the tank lasts 50 seconds. So no matter how much we multiply the original maxFuel (100), if we also multiply the burnRate by the same amount it will last the same time.

1 Like

I noticed that the gradient of each plotted line is equal to the burn rate.

1 Like

It made sense based on the ratios of the previous but I did the math anyway for pratice

1 Like

I got t = 50

c = 0, m = 150 and b = 3

So:

0 = 150 - (3*t) => -150 = -3*t => -150/-3 = t => **t = 50**